AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
503 stars 336 forks source link

what is the definition of "finest_level" in AMRCore #3923

Closed ztdepztdep closed 2 months ago

ztdepztdep commented 2 months ago

I just find "finest_level" is not equal to the "max_level + 1" in the code, I want to know what is the definition of the finest_level.

WeiqunZhang commented 2 months ago

Both finest_level and max_level start with 0. So finest_level == max_level + 1 can never be true because of +1. But that might not be why you asked the question. Is the question about the difference between finest_level and max_level? finest_level is the current finest level, whereas max_level is the maximum that the finest level can possibly be.

ztdepztdep commented 2 months ago

Thanks. I want to know which part of the code update the value of "finest_level" in the AMRcorel.

WeiqunZhang commented 2 months ago

In regrid