Commit 88aa96ae authored by Wang, Ruonan's avatar Wang, Ruonan
Browse files

added verbose parameter for ssc

parent 5e19083f
......@@ -36,6 +36,19 @@ SscReader::SscReader(IO &io, const std::string &name, const Mode mode,
{
m_MpiMode = it->second;
}
it = m_IO.m_Parameters.find("Verbose");
if (it != m_IO.m_Parameters.end())
{
try
{
m_Verbosity = std::stoi(it->second);
}
catch (...)
{
std::cerr << "Engine parameter Verbose can only be integer numbers"
<< std::endl;
}
}
m_Buffer.resize(1);
......
......@@ -37,6 +37,19 @@ SscWriter::SscWriter(IO &io, const std::string &name, const Mode mode,
{
m_MpiMode = it->second;
}
it = m_IO.m_Parameters.find("Verbose");
if (it != m_IO.m_Parameters.end())
{
try
{
m_Verbosity = std::stoi(it->second);
}
catch (...)
{
std::cerr << "Engine parameter Verbose can only be integer numbers"
<< std::endl;
}
}
m_GlobalWritePattern.resize(m_WorldSize);
m_GlobalReadPattern.resize(m_WorldSize);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment