54 Loki::SingleThreaded> Type;
55 return Type::Instance();
81 cerr <<
"File type " << fileType <<
" not supported for this "
85 m_f->m_inputfiles[fileType].push_back(fileName);
92 string fname =
m_config[
"outfile"].as<
string>();
96 cerr <<
"Error opening file: " << fname << endl;
109 cerr <<
"WARNING: Unrecognised config option " << key
110 <<
", proceeding anyway." << endl;
113 it->second.m_beenSet =
true;
115 if (it->second.m_isBool)
117 it->second.m_value =
"1";
121 it->second.m_value = val;
134 cerr <<
"No configuration options for this module." << endl;
140 cerr << setw(10) << it->first <<
": " << it->second.m_desc
155 if (!it->second.m_beenSet)
157 it->second.m_value = it->second.m_defValue;
167 cout <<
"Field size = " <<
ofstream m_fldFile
Output stream.
LibUtilities::NekFactory< ModuleKey, Module, FieldSharedPtr > ModuleFactory
std::ostream & operator<<(std::ostream &os, const ModuleKey &rhs)
pair< ModuleType, string > ModuleKey
map< string, ConfigOption > m_config
List of configuration values.
void RegisterConfig(string key, string value)
Register a configuration option with a module.
FieldSharedPtr m_f
Field object.
OutputModule(FieldSharedPtr p_f)
boost::shared_ptr< Field > FieldSharedPtr
void PrintConfig()
Print out all configuration options for a module.
Represents a command-line configuration option.
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
void OpenStream()
Open a file for output.
void SetDefaults()
Sets default configuration options for those which have not been set.
ModuleFactory & GetModuleFactory()
const char *const ModuleTypeMap[]
Provides a generic Factory class.