yt-project / yt

Main yt repository
http://yt-project.org
Other
469 stars 280 forks source link

[ENH] RAMSES: set max_level from parameter file #5060

Open cphyc opened 2 days ago

cphyc commented 2 days ago

PR Summary

RAMSES contains a text file that describes some basic element of the AMR structure, including the maximum level of refinment. However, that level may not be reached. Up to this PR, we would read all AMR domain files to figure out to effective max level of refinment. This is however a costly operation for large simulations; this PR returns a more conservative number for the max level (the highest achievable by the sim) and is MUCH faster.

PR Checklist