/*1This file is part of t8code.2t8code is a C library to manage a collection (a forest) of multiple3connected adaptive space-trees of general element classes in parallel.45Copyright (C) 2015 the developers67t8code is free software; you can redistribute it and/or modify8it under the terms of the GNU General Public License as published by9the Free Software Foundation; either version 2 of the License, or10(at your option) any later version.1112t8code is distributed in the hope that it will be useful,13but WITHOUT ANY WARRANTY; without even the implied warranty of14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15GNU General Public License for more details.1617You should have received a copy of the GNU General Public License18along with t8code; if not, write to the Free Software Foundation, Inc.,1951 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.20*/2122/** \file t8_cmesh_save.h23* We define routines to save and load a cmesh to/from the file system.24*/2526#ifndef T8_CMESH_SAVE_H27#define T8_CMESH_SAVE_H2829#include <t8.h>3031/** Increment this constant each time the file format changes.32* We can only read files that were written in the same format. */33#define T8_CMESH_FORMAT 0x00023435/** This enumeration contains all modes in which we can open a saved cmesh.36* The cmesh can be loaded with more processes than it was saved and the37* mode controls, which of the processes open files and distribute the data.38*/39typedef enum t8_load_mode {40/** First mode. */41T8_LOAD_FIRST = 0,42/** In simple mode, the first n processes load the file */43T8_LOAD_SIMPLE = T8_LOAD_FIRST,44/** In BGQ mode, the file is loaded on n nodes and from one process of each node.45* This needs MPI Version 3.1 or higher. */46T8_LOAD_BGQ,47/** Every n-th process loads a file. Handle with care, we introduce48* it, since on Juqueen MPI-3 was not available.49* The parameter n has to be passed as an extra parameter.50* \see t8_cmesh_load_and_distribute */51T8_LOAD_STRIDE,52/** Number of modes in which we can open a saved cmesh. */53T8_LOAD_COUNT54} t8_load_mode_t;5556T8_EXTERN_C_BEGIN ();5758T8_EXTERN_C_END ();5960#endif /* !T8_CMESH_SAVE_H */616263