mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added access to DUNE mesh geometry and passing through data to Damaris; Updated command line so users can specifiy Python or Paraview script names and other paramaters that control Damaris - Simulation name - Number of dedicated cores or dedicated nodes - Shared memory region size - switch to turn off HDF5 output. - Damaris logging level
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/*
|
|
Copyright 2022 SINTEF Digital, Mathematics and Cybernetics.
|
|
Copyright 2023 INRIA
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <opm/common/OpmLog/OpmLog.hpp>
|
|
|
|
#include <limits>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
#include <fmt/format.h>
|
|
#include <mpi.h>
|
|
#include <Damaris.h>
|
|
#include <opm/simulators/utils/ParallelCommunication.hpp>
|
|
|
|
/*
|
|
Below is the XML file for Damaris that is supported by Damaris.
|
|
|
|
The entries in the map below will be filled by corresponding Damaris
|
|
Keywords.
|
|
*/
|
|
|
|
|
|
namespace Opm::DamarisOutput
|
|
{
|
|
// Initialize an XML file
|
|
std::string initDamarisXmlFile();
|
|
// Initialize Damaris by filling in th XML file and storing it in the chosen directory
|
|
void initializeDamaris(MPI_Comm comm, int mpiRank, std::map<std::string, std::string>& find_replace_map );
|
|
|
|
} // namespace Opm::DamarisOutput
|