mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
particlePhasicFlow bug-fix when flag --set-fields-only is used and no shpaeName is set
This commit is contained in:
@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user