t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_cmesh_netcdf.h File Reference

The Header-File providing a function to write out a cmesh in a NetCDF-4 file. More...

#include <t8_cmesh.h>
#include <t8_netcdf.h>

Go to the source code of this file.

Functions

void t8_cmesh_write_netcdf (t8_cmesh_t cmesh, const char *file_prefix, const char *file_title, int dim, int num_extern_netcdf_vars, t8_netcdf_variable_t *variables[], sc_MPI_Comm comm)
 Creates a netCDF-4 file containing the (geometrical) information about the given cmesh and additional elementwise data variables. More...
 

Detailed Description

The Header-File providing a function to write out a cmesh in a NetCDF-4 file.

Function Documentation

◆ t8_cmesh_write_netcdf()

void t8_cmesh_write_netcdf ( t8_cmesh_t  cmesh,
const char *  file_prefix,
const char *  file_title,
int  dim,
int  num_extern_netcdf_vars,
t8_netcdf_variable_t variables[],
sc_MPI_Comm  comm 
)

Creates a netCDF-4 file containing the (geometrical) information about the given cmesh and additional elementwise data variables.

Parameters
[in]cmeshA cmesh.
[in]file_prefixA string which holds the file's name (output file will be 'file_prefix.nc').
[in]file_titleA string to caption the NetCDF-File.
[in]dimThe Dimension of the cmesh (2D or 3D).
[in]num_extern_netcdf_varsThe number of extern user-defined variables which hold elementwise data (if none, set it to 0).
[in]ext_variablesAn array of pointers of the herein before mentioned user-defined variables (if none, set it to NULL).
[in]commThe sc_MPI_Communicator to use.