Set _PATH_REGEX_ for non-async, also reformat.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-10-06 16:34:44 +02:00 committed by Elyes Ahmed
parent 408fadca8e
commit e347959d79

View File

@ -32,32 +32,32 @@
namespace Opm::DamarisOutput
{
std::map<std::string,std::string> DamarisKeywords(std::string OutputDir, bool enableAsyncDamarisOutput) {
if (enableAsyncDamarisOutput) {
std::map<std::string,std::string> damaris_keywords = {
{"_SHMEM_BUFFER_BYTES_REGEX_","536870912"},
{"_DC_REGEX_","1"},
{"_DN_REGEX_","0"},
{"_File_Mode", "Collective"},
{"_MORE_VARIABLES_REGEX_",""},
{"_PATH_REGEX_", OutputDir},
{"_MYSTORE_OR_EMPTY_REGEX_","MyStore"},
};
return damaris_keywords;
}
else {
std::map<std::string,std::string> damaris_keywords = {
{"_SHMEM_BUFFER_BYTES_REGEX_","536870912"},
{"_DC_REGEX_","1"},
{"_DN_REGEX_","0"},
{"_File_Mode", "FilePerCore"},
{"_MORE_VARIABLES_REGEX_",""},
{"_File_Mode", OutputDir},
{"_MYSTORE_OR_EMPTY_REGEX_","MyStore"},
};
return damaris_keywords;
}
std::map<std::string, std::string>
DamarisKeywords(std::string OutputDir, bool enableAsyncDamarisOutput)
{
if (enableAsyncDamarisOutput) {
std::map<std::string, std::string> damaris_keywords = {
{"_SHMEM_BUFFER_BYTES_REGEX_", "536870912"},
{"_DC_REGEX_", "1"},
{"_DN_REGEX_", "0"},
{"_File_Mode", "Collective"},
{"_MORE_VARIABLES_REGEX_", ""},
{"_PATH_REGEX_", OutputDir},
{"_MYSTORE_OR_EMPTY_REGEX_", "MyStore"},
};
return damaris_keywords;
} else {
std::map<std::string, std::string> damaris_keywords = {
{"_SHMEM_BUFFER_BYTES_REGEX_", "536870912"},
{"_DC_REGEX_", "1"},
{"_DN_REGEX_", "0"},
{"_File_Mode", "FilePerCore"},
{"_MORE_VARIABLES_REGEX_", ""},
{"_PATH_REGEX_", OutputDir},
{"_MYSTORE_OR_EMPTY_REGEX_", "MyStore"},
};
return damaris_keywords;
}
}
}
} // namespace Opm::DamarisOutput