Commit 90f4c308 authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix for running FC without xml file

parent 9da2db55
......@@ -71,13 +71,17 @@ void OutputFld::Process(po::variables_map &vm)
// Get IO format
std::string iofmt("Xml");
if (m_f->m_session->DefinesSolverInfo("IOFormat"))
if(m_f->m_session)
{
iofmt = m_f->m_session->GetSolverInfo("IOFormat");
}
if (m_f->m_session->DefinesCmdLineArgument("io-format"))
{
iofmt = m_f->m_session->GetCmdLineArgument<std::string>("io-format");
if (m_f->m_session->DefinesSolverInfo("IOFormat"))
{
iofmt = m_f->m_session->GetSolverInfo("IOFormat");
}
if (m_f->m_session->DefinesCmdLineArgument("io-format"))
{
iofmt =
m_f->m_session->GetCmdLineArgument<std::string>("io-format");
}
}
if(m_config["format"].m_beenSet)
{
......
Markdown is supported
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