50 "Reads checkpoint file."),
53 "Reads restart file."),
56 "Reads stability base-flow file.")};
83 string fileName =
m_config[
"infile"].as<
string>();
87 int oldSize =
m_f->m_fielddef.size();
92 auto domain =
m_f->m_graph->GetDomain();
93 for (
int d = 0;
d < domain.size(); ++
d)
95 for (
auto &compIter : domain[
d])
97 for (
auto &x : compIter.second->m_geomVec)
99 IDs.push_back(x->GetGlobalID());
112 fld->Import(fileName,
m_f->m_fielddef,
m_f->m_data,
113 m_f->m_fieldMetaDataMap, ElementGIDs);
117 fld->Import(fileName,
m_f->m_fielddef,
m_f->m_data,
118 m_f->m_fieldMetaDataMap);
122 for (i = 0; i <
m_f->m_fielddef[oldSize]->m_fields.size(); ++i)
125 auto it =
find(
m_f->m_variables.begin(),
m_f->m_variables.end(),
126 m_f->m_fielddef[oldSize]->m_fields[i]);
128 if (it ==
m_f->m_variables.end())
130 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)
std::vector< double > d(NPUPPER *NPUPPER)