mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Set _PATH_REGEX_ for non-async, also reformat.
This commit is contained in:
parent
408fadca8e
commit
e347959d79
@ -23,41 +23,41 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Below is the Damaris Keywords supported by Damaris to be filled
|
Below is the Damaris Keywords supported by Damaris to be filled
|
||||||
in the built-in XML file.
|
in the built-in XML file.
|
||||||
|
|
||||||
The entries in the map below will be filled by the corresponding
|
The entries in the map below will be filled by the corresponding
|
||||||
Damaris Keywords. Yet, only output directory and FileMode are to
|
Damaris Keywords. Yet, only output directory and FileMode are to
|
||||||
be chosen by the user
|
be chosen by the user
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Opm::DamarisOutput
|
namespace Opm::DamarisOutput
|
||||||
{
|
{
|
||||||
std::map<std::string,std::string> DamarisKeywords(std::string OutputDir, bool enableAsyncDamarisOutput) {
|
std::map<std::string, std::string>
|
||||||
if (enableAsyncDamarisOutput) {
|
DamarisKeywords(std::string OutputDir, bool enableAsyncDamarisOutput)
|
||||||
std::map<std::string,std::string> damaris_keywords = {
|
{
|
||||||
{"_SHMEM_BUFFER_BYTES_REGEX_","536870912"},
|
if (enableAsyncDamarisOutput) {
|
||||||
{"_DC_REGEX_","1"},
|
std::map<std::string, std::string> damaris_keywords = {
|
||||||
{"_DN_REGEX_","0"},
|
{"_SHMEM_BUFFER_BYTES_REGEX_", "536870912"},
|
||||||
{"_File_Mode", "Collective"},
|
{"_DC_REGEX_", "1"},
|
||||||
{"_MORE_VARIABLES_REGEX_",""},
|
{"_DN_REGEX_", "0"},
|
||||||
{"_PATH_REGEX_", OutputDir},
|
{"_File_Mode", "Collective"},
|
||||||
{"_MYSTORE_OR_EMPTY_REGEX_","MyStore"},
|
{"_MORE_VARIABLES_REGEX_", ""},
|
||||||
};
|
{"_PATH_REGEX_", OutputDir},
|
||||||
return damaris_keywords;
|
{"_MYSTORE_OR_EMPTY_REGEX_", "MyStore"},
|
||||||
}
|
};
|
||||||
else {
|
return damaris_keywords;
|
||||||
std::map<std::string,std::string> damaris_keywords = {
|
} else {
|
||||||
{"_SHMEM_BUFFER_BYTES_REGEX_","536870912"},
|
std::map<std::string, std::string> damaris_keywords = {
|
||||||
{"_DC_REGEX_","1"},
|
{"_SHMEM_BUFFER_BYTES_REGEX_", "536870912"},
|
||||||
{"_DN_REGEX_","0"},
|
{"_DC_REGEX_", "1"},
|
||||||
{"_File_Mode", "FilePerCore"},
|
{"_DN_REGEX_", "0"},
|
||||||
{"_MORE_VARIABLES_REGEX_",""},
|
{"_File_Mode", "FilePerCore"},
|
||||||
{"_File_Mode", OutputDir},
|
{"_MORE_VARIABLES_REGEX_", ""},
|
||||||
{"_MYSTORE_OR_EMPTY_REGEX_","MyStore"},
|
{"_PATH_REGEX_", OutputDir},
|
||||||
};
|
{"_MYSTORE_OR_EMPTY_REGEX_", "MyStore"},
|
||||||
return damaris_keywords;
|
};
|
||||||
|
return damaris_keywords;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace Opm::DamarisOutput
|
||||||
|
Loading…
Reference in New Issue
Block a user