Allow to specify additional LIGGGHTS script to be executed directly before end of coupled run, e.g. for specific cleaning-up tasks.
This commit is contained in:
@ -92,6 +92,11 @@ twoWayMPI::twoWayMPI
|
||||
|
||||
twoWayMPI::~twoWayMPI()
|
||||
{
|
||||
if (propsDict_.found("liggghtsEndOfRunPath"))
|
||||
{
|
||||
const fileName liggghtsEndOfRunPath(propsDict_.lookup("liggghtsEndOfRunPath"));
|
||||
lmp->input->file(liggghtsEndOfRunPath.c_str());
|
||||
}
|
||||
delete lmp;
|
||||
}
|
||||
|
||||
|
||||
@ -163,6 +163,12 @@ twoWayMany2Many::~twoWayMany2Many()
|
||||
delete lmp2foam_vec_;
|
||||
delete foam2lmp_vec_;
|
||||
delete foam2lmp_;
|
||||
|
||||
if (propsDict_.found("liggghtsEndOfRunPath"))
|
||||
{
|
||||
const fileName liggghtsEndOfRunPath(propsDict_.lookup("liggghtsEndOfRunPath"));
|
||||
lmp->input->file(liggghtsEndOfRunPath.c_str());
|
||||
}
|
||||
delete lmp;
|
||||
}
|
||||
|
||||
|
||||
@ -242,6 +242,11 @@ twoWayOne2One::~twoWayOne2One()
|
||||
destroy(prev_cell_ids_);
|
||||
destroy(dbl_cell_ids_);
|
||||
|
||||
if (propsDict_.found("liggghtsEndOfRunPath"))
|
||||
{
|
||||
const fileName liggghtsEndOfRunPath(propsDict_.lookup("liggghtsEndOfRunPath"));
|
||||
lmp->input->file(liggghtsEndOfRunPath.c_str());
|
||||
}
|
||||
delete lmp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user