My Project
DamarisOutputModule.hpp
1
/*
2
Copyright 2022 SINTEF Digital, Mathematics and Cybernetics.
3
4
This file is part of the Open Porous Media project (OPM).
5
6
OPM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
OPM is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with OPM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include <string>
21
#include <Damaris.h>
22
#include <opm/simulators/utils/ParallelCommunication.hpp>
23
24
/*
25
Below is the XML file for Damaris that is supported by Damaris.
26
27
The entries in the map below will be filled by corresponding Damaris
28
Keywords.
29
*/
30
31
32
namespace
Opm::DamarisOutput
33
{
34
// Initialize an XML file
35
std::string initDamarisXmlFile();
36
// Initialize Damaris by filling in th XML file and stroring it in the chosed directory
37
void
initializeDamaris(MPI_Comm comm,
int
mpiRank, std::string OutputDir,
bool
enableDamarisOutputCollective);
38
// Setup Damaris Parameters for writing e.g., grid size and communicator to output "PRESSURE" field
39
void
setupDamarisWritingPars(Parallel::Communication comm,
const
int
n_elements_local_grid);
40
41
}
// namespace Opm::DamarisOutput
opm
simulators
utils
DamarisOutputModule.hpp
Generated by
1.9.1