t8
1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
|
The Header-File providing a function to write out a forest in a NetCDF-4 file. More...
Go to the source code of this file.
Functions | |
void | t8_forest_write_netcdf (t8_forest_t forest, const char *file_prefix, const char *file_title, int dim, int num_extern_netcdf_vars, t8_netcdf_variable_t *ext_variables[], sc_MPI_Comm comm) |
Creates a netCDF-4 file containing the (geometrical) information about the given forest mesh and additional elementwise data variables This functions calls 't8_forest_write_netcdf_ext()' with default values for 'netcdf_var_storage_mode' (NC_CONTIGUOUS) and 'netcdf_var_mpi_access' (NC_INDEPENDENT). More... | |
void | t8_forest_write_netcdf_ext (t8_forest_t forest, const char *file_prefix, const char *file_title, int dim, int num_extern_netcdf_vars, t8_netcdf_variable_t *ext_variables[], sc_MPI_Comm comm, int netcdf_var_storage_mode, int netcdf_var_mpi_access) |
Creates a netCDF-4 file containing the (geometrical) information about the given forest mesh and additional elementwise data variables. More... | |
The Header-File providing a function to write out a forest in a NetCDF-4 file.
void t8_forest_write_netcdf | ( | t8_forest_t | forest, |
const char * | file_prefix, | ||
const char * | file_title, | ||
int | dim, | ||
int | num_extern_netcdf_vars, | ||
t8_netcdf_variable_t * | ext_variables[], | ||
sc_MPI_Comm | comm | ||
) |
Creates a netCDF-4 file containing the (geometrical) information about the given forest mesh and additional elementwise data variables This functions calls 't8_forest_write_netcdf_ext()' with default values for 'netcdf_var_storage_mode' (NC_CONTIGUOUS) and 'netcdf_var_mpi_access' (NC_INDEPENDENT).
[in] | forest | A forest. |
[in] | file_prefix | A string which holds the file's name (output file will be 'file_prefix.nc'). |
[in] | file_title | A string to caption the NetCDF-File. |
[in] | dim | The Dimension of the forest mesh (2D or 3D). |
[in] | num_extern_netcdf_vars | The number of extern user-defined variables which hold elementwise data (if none, set it to 0). |
[in] | ext_variables | An array of pointers of the herein before mentioned user-defined variables (if none, set it to NULL). |
[in] | comm | The sc_MPI_Communicator to use. |
void t8_forest_write_netcdf_ext | ( | t8_forest_t | forest, |
const char * | file_prefix, | ||
const char * | file_title, | ||
int | dim, | ||
int | num_extern_netcdf_vars, | ||
t8_netcdf_variable_t * | ext_variables[], | ||
sc_MPI_Comm | comm, | ||
int | netcdf_var_storage_mode, | ||
int | netcdf_var_mpi_access | ||
) |
Creates a netCDF-4 file containing the (geometrical) information about the given forest mesh and additional elementwise data variables.
[in] | forest | A forest. |
[in] | file_prefix | A string which holds the file's name (output file will be 'file_prefix.nc'). |
[in] | file_title | A string to caption the NetCDF-File. |
[in] | dim | The Dimension of the forest mesh (2D or 3D). |
[in] | num_extern_netcdf_vars | The number of extern user-defined variables which hold elementwise data (if none, set it to 0). |
[in] | ext_variables | An array of pointers of the herein before mentioned user-defined variables (if none, set it to NULL). |
[in] | comm | The sc_MPI_Communicator to use. |
[in] | netcdf_var_storage_mode | This defines whether the variables in the netCDF-4 File are stored contiguously (NC_CONTIGUOUS) or in chunks (NC_CHUNKED (in this case netCDF's default chunking scheme is used)). |
[in] | netcdf_var_mpi_access | This defines whether the mpi processes are writing the variables' data collectively or independently. |