particlePhasicFlow bug-fix when flag --set-fields-only is used and no shpaeName is set
This commit is contained in:
parent
967bb753aa
commit
a32786eb8a
|
@ -181,6 +181,8 @@ int main( int argc, char* argv[] )
|
||||||
&Control.caseSetup()
|
&Control.caseSetup()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(Control.time().lookupObjectName("shapeName"))
|
||||||
|
{
|
||||||
auto& shapeName = Control.time().template lookupObject<pFlow::wordPointField_H>("shapeName");
|
auto& shapeName = Control.time().template lookupObject<pFlow::wordPointField_H>("shapeName");
|
||||||
|
|
||||||
REPORT(0)<< "Converting shapeName field to shapeIndex field"<<END_REPORT;
|
REPORT(0)<< "Converting shapeName field to shapeIndex field"<<END_REPORT;
|
||||||
|
@ -207,6 +209,8 @@ int main( int argc, char* argv[] )
|
||||||
shapes.shapeNames()<<pFlow::endl;
|
shapes.shapeNames()<<pFlow::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if( !Control.time().write(true))
|
if( !Control.time().write(true))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue