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.
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 asconst
. This is PR #2789 in Amrex.