AMReX-Codes / Amrvis

Amrvis is a visualization package specifically designed to read and display output and profiling data from codes built on the AMReX framework.
https://amrex-codes.github.io/amrex/docs_html/Visualization.html
16 stars 16 forks source link

Add initplanesreal option #24

Closed dpgrote closed 2 years ago

dpgrote commented 2 years ago

This adds a feature that I've wanted for some time but finally got to add it. This allows specifying the initial planes of the visualization in real units rather that only in grid cell units. I frequently do visualization of output from simulations with different levels of refinement so I would have to continually change the values for initplanes since they depend on the highest level of resolution. With my change, I can specify the planes in real units (i.e. centimeters) and it will start with the appropriate plane independent of the level of resolution.

Note that this change uses AmrData::IntVectFromLocation. For this to work, a change is needed in amrex (Src/Extern/amrdata/AMReX_AmrData.H) specifying that routine as const. This is PR #2789 in Amrex.