39 #include <boost/core/ignore_unused.hpp>
52 InputFld::create,
"Reads Fld file."),
55 InputFld::create,
"Reads checkpoint file."),
58 InputFld::create,
"Reads restart file."),
61 InputFld::create,
"Reads stability base-flow file.")
88 boost::ignore_unused(vm);
91 string fileName =
m_config[
"infile"].as<
string>();
94 m_f->FieldIOForFile(fileName);
96 int oldSize =
m_f->m_fielddef.size();
101 auto domain =
m_f->m_graph->GetDomain();
102 for(
int d = 0; d < domain.size(); ++d)
104 for (
auto &compIter : domain[d])
106 for (
auto &x : compIter.second->m_geomVec)
108 IDs.push_back(x->GetGlobalID());
122 fileName,
m_f->m_fielddef,
m_f->m_data,
123 m_f->m_fieldMetaDataMap, ElementGIDs);
128 fileName,
m_f->m_fielddef,
m_f->m_data,
129 m_f->m_fieldMetaDataMap);
133 for(i = 0; i <
m_f->m_fielddef[oldSize]->m_fields.size(); ++i)
136 auto it =
find (
m_f->m_variables.begin(),
137 m_f->m_variables.end(),
138 m_f->m_fielddef[oldSize]->m_fields[i]);
140 if(it ==
m_f->m_variables.end())
142 m_f->m_variables.push_back(
m_f->m_fielddef[oldSize]->m_fields[i]);
std::set< std::string > m_allowedFiles
List of allowed file formats.
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
std::shared_ptr< FieldIO > FieldIOSharedPtr
InputIterator find(InputIterator first, InputIterator last, InputIterator startingpoint, const EqualityComparable &value)
The above copyright notice and this permission notice shall be included.