t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Macros | Typedefs | Enumerations
t8_cmesh_save.h File Reference

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

#include <t8.h>

Go to the source code of this file.

Macros

#define T8_CMESH_FORMAT   0x0002
 Increment this constant each time the file format changes. More...
 

Typedefs

typedef enum t8_load_mode t8_load_mode_t
 This enumeration contains all modes in which we can open a saved cmesh. More...
 

Enumerations

enum  t8_load_mode {
  T8_LOAD_FIRST = 0 ,
  T8_LOAD_SIMPLE = T8_LOAD_FIRST ,
  T8_LOAD_BGQ ,
  T8_LOAD_STRIDE ,
  T8_LOAD_COUNT
}
 This enumeration contains all modes in which we can open a saved cmesh. More...
 

Detailed Description

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

TODO: document this file

Macro Definition Documentation

◆ T8_CMESH_FORMAT

#define T8_CMESH_FORMAT   0x0002

Increment this constant each time the file format changes.

We can only read files that were written in the same format.

Typedef Documentation

◆ t8_load_mode_t

This enumeration contains all modes in which we can open a saved cmesh.

The cmesh can be loaded with more processes than it was saved and the mode controls, which of the processes open files and distribute the data.

Enumeration Type Documentation

◆ t8_load_mode

This enumeration contains all modes in which we can open a saved cmesh.

The cmesh can be loaded with more processes than it was saved and the mode controls, which of the processes open files and distribute the data.

Enumerator
T8_LOAD_SIMPLE 

In simple mode, the first n processes load the file.

T8_LOAD_BGQ 

In BGQ mode, the file is loaded on n nodes and from one process of each node.

This needs MPI Version 3.1 or higher.

T8_LOAD_STRIDE 

Every n-th process loads a file.

Handle with care, we introduce it, since on Juqueen MPI-3 was not available. The parameter n has to be passed as an extra parameter.

See also
t8_cmesh_load_and_distribute