Skip to content

Logger dimensionality compilation error fix

Bert Vandenbroucke requested to merge logger_dimensionality_fix into master

Made sure logger_particle vector variables have size 3 to fix a compilation error when configuring with hydro dimension =/= 3.

Since we do not expect to ever use the logger for very large 1D or 2D simulations, I just changed the array sizes to 3, irrespective of the actual number of dimensions. This causes a minor memory overhead. The alternative solution would have been to explicitly check the dimensionality whenever accessing these arrays and that would have been ugly.

Merge request reports