51 typedef Loki::SingletonHolder<
ModuleFactory, Loki::CreateUsingNew,
52 Loki::NoDestroy, Loki::SingleThreaded>
54 return Type::Instance();
80 cerr <<
"File type " << fileType <<
" not supported for this "
84 m_f->m_inputfiles[fileType].push_back(fileName);
91 string fname =
m_config[
"outfile"].as<
string>();
95 cerr <<
"Error opening file: " << fname << endl;
108 cerr <<
"WARNING: Unrecognised config option " << key
109 <<
", proceeding anyway." << endl;
112 it->second.m_beenSet =
true;
114 if (it->second.m_isBool)
116 it->second.m_value =
"1";
120 it->second.m_value = val;
133 cerr <<
"No configuration options for this module." << endl;
139 cerr << setw(10) << it->first <<
": " << it->second.m_desc << endl;
153 if (!it->second.m_beenSet)
155 it->second.m_value = it->second.m_defValue;
165 cout <<
"Field size = " <<
m_f->m_data[0].size() *
sizeof(
NekDouble)
map< string, ConfigOption > m_config
List of configuration values.
Represents a command-line configuration option.
std::ostream & operator<<(std::ostream &os, const ModuleKey &rhs)
LibUtilities::NekFactory< ModuleKey, Module, FieldSharedPtr > ModuleFactory
pair< ModuleType, string > ModuleKey
FIELD_UTILS_EXPORT void SetDefaults()
Sets default configuration options for those which have not been set.
const char *const ModuleTypeMap[]
OutputModule(FieldSharedPtr p_f)
boost::shared_ptr< Field > FieldSharedPtr
FIELD_UTILS_EXPORT void RegisterConfig(string key, string value)
Register a configuration option with a module.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
ofstream m_fldFile
Output stream.
FIELD_UTILS_EXPORT void OpenStream()
Open a file for output.
FIELD_UTILS_EXPORT void PrintConfig()
Print out all configuration options for a module.
Provides a generic Factory class.
ModuleFactory & GetModuleFactory()
FieldSharedPtr m_f
Field object.