36 #ifndef UTILITIES_PREPROCESSING_MESHCONVERT_MODULE
37 #define UTILITIES_PREPROCESSING_MESHCONVERT_MODULE
52 namespace po = boost::program_options;
92 m_isBool(isBool), m_beenSet(false), m_value(),
93 m_defValue(defValue), m_desc(desc) {}
95 m_isBool(false), m_beenSet(false), m_value(),
96 m_defValue(), m_desc() {}
107 return boost::lexical_cast<T>(m_value);
109 catch(
const exception &e)
111 cerr << e.what() << endl;
139 virtual void Process(po::variables_map &vm) = 0;
141 void RegisterConfig(
string key,
string value);
147 return m_requireEquiSpaced;
152 m_requireEquiSpaced = pVal;
155 void EvaluateTriFieldAtEquiSpacedPts(
184 void AddFile(
string fileType,
string fileName);
224 ostream&
operator<<(ostream& os,
const ModuleKey& rhs);
239 m_type =
"FieldConvert parallel";
245 m_type =
"FieldConvert parallel";
251 m_commRow = boost::shared_ptr<FieldConvertComm>(
253 m_commColumn = boost::shared_ptr<FieldConvertComm>(
ofstream m_fldFile
Output stream.
LibUtilities::NekFactory< ModuleKey, Module, FieldSharedPtr > ModuleFactory
std::ostream & operator<<(std::ostream &os, const ModuleKey &rhs)
pair< ModuleType, string > ModuleKey
string m_defValue
Default value of the configuration option.
Abstract base class for output modules.
bool m_isBool
True if the configuration option is a boolean (thus does not need additional arguments).
map< string, ConfigOption > m_config
List of configuration values.
string m_desc
Description of the configuration option.
string m_value
The value of the configuration option.
T as()
Re-interpret the value stored in value as some type using boost::lexical_cast.
boost::shared_ptr< InputModule > InputModuleSharedPtr
void SetRequireEquiSpaced(bool pVal)
FieldConvertComm(int size, int rank)
Module(FieldSharedPtr p_f)
bool m_beenSet
True if the configuration option has been set at command line. If false, the default value will be pu...
FieldConvertComm(int argc, char *argv[], int size, int rank)
bool v_RemoveExistingFiles(void)
void v_SplitComm(int pRows, int pColumns)
boost::shared_ptr< Module > ModuleSharedPtr
ProcessModule(FieldSharedPtr p_f)
boost::shared_ptr< Field > FieldSharedPtr
Represents a command-line configuration option.
ConfigOption(bool isBool, string defValue, string desc)
Construct a new configuration option.
bool v_TreatAsRankZero(void)
boost::shared_ptr< Expansion > ExpansionSharedPtr
virtual ~FieldConvertComm()
ModuleFactory & GetModuleFactory()
const char *const ModuleTypeMap[]
Abstract base class for processing modules.
Provides a generic Factory class.
bool GetRequireEquiSpaced(void)