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:
tlichtenegger
2019-11-13 16:55:57 +01:00
parent 3351b85908
commit 7a02baff6d
3 changed files with 16 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}