JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
Mpi2Evolution.h
Go to the documentation of this file.
1
9/*
10 * JEMRIS Copyright (C)
11 * 2006-2025 Tony Stoecker
12 * 2007-2018 Kaveh Vahedipour
13 * 2009-2019 Daniel Pflugfelder
14 *
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 */
30
31#ifndef MPI2EVOLUTION_H_
32#define MPI2EVOLUTION_H_
33#include "mpi.h"
34#include <vector>
35#include "config.h"
36
37using namespace std;
38
44public:
46
50 virtual ~Mpi2Evolution()=0;
51
55 static void OpenFiles(int is_restart);
56
60 static void CloseFiles();
61
65 static void saveEvolution(long index, bool close_files);
66
70 static void SetSaveFunction();
71
72#ifdef HAVE_MPI_THREADS
73 static vector<MPI_File> m_files;
74#endif
75 static vector<bool> m_first_write;
76
77};
78
79
80#endif /* MPI2EVOLUTION_H_ */
pure virtual class; provides methods to write evolution file using parallel I/O
Definition Mpi2Evolution.h:43
static void OpenFiles(int is_restart)
Definition Mpi2Evolution.cpp:66
virtual ~Mpi2Evolution()=0
static void saveEvolution(long index, bool close_files)
Definition Mpi2Evolution.cpp:127
static void CloseFiles()
Definition Mpi2Evolution.cpp:119
static void SetSaveFunction()

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --