Skip to content
Snippets Groups Projects
Commit b8625b21 authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[App] Unset project dir upon finalize()

parent 44bea8ef
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "Applications/ApplicationsLib/TestDefinition.h" #include "Applications/ApplicationsLib/TestDefinition.h"
#include "BaseLib/DateTools.h" #include "BaseLib/DateTools.h"
#include "BaseLib/Error.h" #include "BaseLib/Error.h"
#include "BaseLib/FileTools.h"
#include "BaseLib/Logging.h" #include "BaseLib/Logging.h"
#include "BaseLib/RunTime.h" #include "BaseLib/RunTime.h"
#include "CommandLineArgumentParser.h" #include "CommandLineArgumentParser.h"
...@@ -123,6 +124,12 @@ double endTime() ...@@ -123,6 +124,12 @@ double endTime()
void finalize() void finalize()
{ {
simulation.reset(nullptr); simulation.reset(nullptr);
// TODO don't use global project directory, shared among different OGS
// instances.
// Unset project dir to make multiple OGS runs in one Python session
// possible.
BaseLib::unsetProjectDirectory();
} }
/// python module name is OpenGeoSys /// python module name is OpenGeoSys
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment