We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb0df5 commit 8461d67Copy full SHA for 8461d67
apps/api/src/api.cpp
@@ -150,6 +150,7 @@ namespace Api
150
{
151
_data = Core::CaseData(); // Explicity delete everything before
152
udf_handle.reset();
153
+ // Api::finalise();
154
}
155
156
std::optional<std::unique_ptr<SimulationInstance>>
@@ -175,7 +176,6 @@ namespace Api
175
176
177
try
178
-
179
if (logger)
180
181
logger->print(
apps/core/src/case_data.cpp
@@ -178,6 +178,13 @@ namespace Core
+ if constexpr (AutoGenerated::FlagCompileTime::use_mpi)
182
+ {
183
+#ifndef NO_MPI
184
+ std::atexit(WrapMPI::finalize);
185
+#endif
186
+ }
187
+
188
info.current_rank = static_cast<size_t>(rank);
189
info.n_rank = static_cast<size_t>(size);
190
0 commit comments