Skip to content

Conversation

@khanakbhargava
Copy link
Contributor

This fixes the max_level error that I got when running in debug mode since the maximum allowed is 15.

@zingale
Copy link
Member

zingale commented Sep 15, 2025

looking at where MAX_LEV is used, I think that the assert may actually be wrong. I think that MAX_LEV is the number of levels, 0-based, so in Castro.cpp, the check that:

BL_ASSERT(max_level <= MAX_LEV);

should actually be:

BL_ASSERT(max_level < MAX_LEV);

this is what we assert on in Gravity.cpp and Diffusion.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants