Skip to content
Snippets Groups Projects

Logger dimensionality compilation error fix

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading