50 ModuleKey ProcessBoundaryExtract::className =
53 ProcessBoundaryExtract::create,
"Extract Boundary field");
63 f->m_writeBndFld =
true;
64 f->m_declareExpansionAsContField =
true;
67 if((f->m_inputfiles.count(
"xml") == 0)&&(f->m_inputfiles.count(
"xml.gz") == 0))
69 cout <<
"An xml or xml.gz input file must be specified for the boundary extraction module" << endl;
73 if((f->m_inputfiles.count(
"fld") == 0)&&(f->m_inputfiles.count(
"chk") == 0)&&(f->m_inputfiles.count(
"rst") == 0))
75 cout <<
"A fld or chk or rst input file must be specified for the boundary extraction module" << endl;
90 cout <<
"ProcessBoundaryExtract: Setting up boundary extraction..." << endl;
94 string bvalues =
m_config[
"bnd"].as<
string>();
96 if(bvalues.compare(
"All") == 0)
99 BndExp =
m_f->m_exp[0]->GetBndCondExpansions();
101 for(
int i = 0; i < BndExp.num_elements(); ++i)
103 m_f->m_bndRegionsToWrite.push_back(i);
109 m_f->m_bndRegionsToWrite),
"Failed to interpret range string");
112 m_f->m_fldToBnd =
m_config[
"fldtoboundary"].m_beenSet;
113 m_f->m_addNormals =
m_config[
"addnormals"].m_beenSet;
#define ASSERTL0(condition, msg)
pair< ModuleType, string > ModuleKey
static bool GenerateOrderedVector(const char *const str, std::vector< unsigned int > &vec)
map< string, ConfigOption > m_config
List of configuration values.
FieldSharedPtr m_f
Field object.
boost::shared_ptr< Field > FieldSharedPtr
Represents a command-line configuration option.
ModuleFactory & GetModuleFactory()
Abstract base class for processing modules.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.