amuse icon indicating copy to clipboard operation
amuse copied to clipboard

clean shutdown of some codes

Open ipelupessy opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. some codes, especially C++ codes need explcit call to cleanup_code before shutting down (e.g. for cleaning up MPI resources before a MPI_Finalize), this normally done through state model and stop..but this makes a shutdown with out a stop or a del instance unclean, since the del in the codeInterface will not trigger the state model (and thus no call to cleanup_code happens)

Describe the solution you'd like del instance or exiting should always work to cleanup_code if possible (ie if the code is alive)

ipelupessy avatar Aug 31 '21 15:08 ipelupessy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 04 '22 15:03 stale[bot]