exit#

Mapdl.exit(save=False, force=False, **kwargs)#

Exit MAPDL.

Parameters:
savebool, optional

Save the database on exit. The default is False.

forcebool, optional

Override any environment variables that may inhibit exiting MAPDL.

Notes

If Mapdl didn’t start the instance, then this will be ignored unless force=True.

If PYMAPDL_START_INSTANCE is set to False (generally set in remote testing or documentation build), then this will be ignored. Override this behavior with force=True to always force exiting MAPDL regardless of your local environment.

If Mapdl.finish_job_on_exit is set to True and there is a valid JobID in Mapdl.jobid, then the SLURM job will be canceled.

Examples

>>> mapdl.exit()