Closed HomesGH closed 2 months ago
Ok, it’s actually AutoPas which breaks the CI…
Ok, it’s actually AutoPas which breaks the CI…
This is what I meant. So the clean thing would be to adapt the tests. But this is ls1, so I personally could also live with going back to the previous philosophy of (almost) silent changes in behavior and cheating the tests just for the sake of getting the rest of this PR towards master...
Description
Simulation.h
is included in many files and can easily lead to some chaos due to circular dependency (as @FG-TUM mentioned). Therefore, this PR replaces theSimulation::exit()
method withmardyn_exit()
since this only requires the include of mardyn_assert. TheSimulation::exit()
method is also deleted.During the replacement, I paid attention to no include the
Simulation.h
in any header file (~exception:Planar.cpp
since it requiresSimulation
as one argument of its methods~ solved byclass Simulation;
instead if#include
). Therefore, I had to moveDomain::setComponentThermostat
from the header to the cpp file.What became apparent during the replacement: A lot of files use
global_simulation
or_simulation
, e.g. to get the ensemble.