Skip to content
Snippets Groups Projects
Commit 80d6c1af authored by Podhorszki, Norbert's avatar Podhorszki, Norbert
Browse files

Set Variable.m_Value at opening for single value variables

parent 12cb32aa
No related branches found
No related tags found
1 merge request!323Heat
......@@ -164,6 +164,13 @@ void InitXML(const std::string configXML, MPI_Comm mpiComm,
fileContents = BroadcastValue(fileContents, mpiComm);
if (debugMode && fileContents.empty())
{
throw std::invalid_argument("ERROR: config xml file " + configXML +
" is either empty or file couldn't be "
"found, in call to ADIOS constructor\n");
}
pugi::xml_document doc;
auto parse_result = doc.load_buffer_inplace(
const_cast<char *>(fileContents.data()), fileContents.size());
......
......@@ -123,6 +123,7 @@ BP3Deserializer::DefineVariableInIO(const ElementIndexHeader &header, IO &io,
{
std::lock_guard<std::mutex> lock(m_Mutex);
variable = &io.DefineVariable<T>(variableName);
variable->m_Value = characteristics.Statistics.Value;
variable->m_Min = characteristics.Statistics.Value;
variable->m_Max = characteristics.Statistics.Value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment