ExodusII 6.05
|
#include <mpi.h>
#include <stddef.h>
#include <stdio.h>
#include "exodusII.h"
#include "exodusII_int.h"
#include "netcdf.h"
#include "netcdf_par.h"
Functions | |
int | ex_open_par_int (const char *path, int mode, int *comp_ws, int *io_ws, float *version, MPI_Comm comm, MPI_Info info, int run_version) |
Variables | |
static int | warning_output = 0 |
int ex_open_par_int | ( | const char * | path, |
int | mode, | ||
int * | comp_ws, | ||
int * | io_ws, | ||
float * | version, | ||
MPI_Comm | comm, | ||
MPI_Info | info, | ||
int | run_version ) |
|
static |
The function ex_open() opens an existing exodus file and returns an ID that can subsequently be used to refer to the file, the word size of the floating point values stored in the file, and the version of the exodus database (returned as a float'', regardless of the compute or I/O word size). Multiple files may be
open'' simultaneously.
path | The file name of the exodus file. This can be given as either an absolute path name (from the root of the file system) or a relative path name (from the current directory). | |
mode | Access mode. Use one of the following predefined constants:
| |
[in,out] | comp_ws | The word size in bytes (0, 4 or 8) of the floating point variables used in the application program. If 0 (zero) is passed, the default size of floating point values for the machine will be used and returned in this variable. WARNING: all exodus functions requiring reals must be passed reals declared with this passed in or returned compute word size (4 or 8). |
[in,out] | io_ws | The word size in bytes (0, 4 or 8) of the floating point data as they are stored in the exodus file. If the word size does not match the word size of data stored in the file, a fatal error is returned. If this argument is 0, the word size of the floating point data already stored in the file is returned. |
[out] | version | Returned exodus database version number. |
The following opens an exodus file named test.exo
for read only, using default settings for compute and I/O word sizes: