50 ModuleKey ProcessBoundaryExtract::className =
53 ProcessBoundaryExtract::create,
"Extract Boundary field");
61 f->m_writeBndFld =
true;
62 f->m_declareExpansionAsContField =
true;
65 if((f->m_inputfiles.count(
"xml") == 0)&&(f->m_inputfiles.count(
"xml.gz") == 0))
67 cout <<
"An xml or xml.gz input file must be specified for the boundary extraction module" << endl;
71 if((f->m_inputfiles.count(
"fld") == 0)&&(f->m_inputfiles.count(
"chk") == 0)&&(f->m_inputfiles.count(
"rst") == 0))
73 cout <<
"A fld or chk or rst input file must be specified for the boundary extraction module" << endl;
88 cout <<
"ProcessBoundaryExtract: Setting up boundary extraction..." << endl;
92 string bvalues =
m_config[
"bnd"].as<
string>();
94 if(bvalues.compare(
"All") == 0)
96 Array<OneD, const MultiRegions::ExpListSharedPtr>
97 BndExp =
m_f->m_exp[0]->GetBndCondExpansions();
99 for(
int i = 0; i < BndExp.num_elements(); ++i)
101 m_f->m_bndRegionsToWrite.push_back(i);
107 m_f->m_bndRegionsToWrite),
"Failed to interpret range string");
110 if(
m_config[
"fldtoboundary"].as<string>().compare(
"1") == 0)
112 m_f->m_fldToBnd =
true;
116 m_f->m_fldToBnd =
false;