t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Macros | Functions
t8_cmesh_save.cxx File Reference

We define routines to save and load a cmesh to/from the file system. More...

#include <t8_version.h>
#include <t8_eclass.h>
#include <t8_cmesh/t8_cmesh_types.h>
#include <t8_cmesh/t8_cmesh_trees.h>
#include <t8_cmesh/t8_cmesh_save.h>
#include <t8_cmesh/t8_cmesh_partition.h>
#include <t8_cmesh/t8_cmesh_offset.h>
#include <t8_geometry/t8_geometry.h>
#include <t8_geometry/t8_geometry_base.h>
#include <t8_geometry/t8_geometry_handler.hxx>
#include <t8_geometry/t8_geometry_implementations/t8_geometry_linear.h>

Macros

#define T8_SAVE_CHECK_CLOSE(x, fp)
 

Functions

int t8_cmesh_save (t8_cmesh_t cmesh, const char *fileprefix)
 
t8_cmesh_t t8_cmesh_load (const char *filename, sc_MPI_Comm comm)
 
t8_cmesh_t t8_cmesh_load_and_distribute (const char *fileprefix, int num_files, sc_MPI_Comm comm, t8_load_mode_t mode, int procs_per_node)
 

Detailed Description

We define routines to save and load a cmesh to/from the file system.

TODO: document this file

Macro Definition Documentation

◆ T8_SAVE_CHECK_CLOSE

#define T8_SAVE_CHECK_CLOSE (   x,
  fp 
)
Value:
if (!(x)) { \
t8_errorf ("file i/o error. Condition %s not fulfilled. " \
"Line %i in file %s\n", \
#x, __LINE__, __FILE__); \
fclose (fp); \
return 0; \
}