Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description Fixes a segmentation fault during openPMD plotfile output when face-centered variables are enabled. There was an implicit assumption in `AMRSimulation<problem_t>::AverageFCToCC()` that the number of face-centered ghost zones was the same as the number of cell-centered ghost zones. This PR allows the number of ghosts to differ. I manually tested that this works inside the CUDA dev container by compiling Quokka with `-DQUOKKA_OPENPMD=ON`, running the HydroBlast3D problem, and then examining the output files with [openPMD-viewer](https://github.com/openPMD/openPMD-viewer). ### Related issues Fixes #742. ### Checklist _Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an `x` inside the square brackets `[ ]` in the Markdown source below:_ - [x] I have added a description (see above). - [x] I have added a link to any related issues (if applicable; see above). - [x] I have read the [Contributing Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md). - [ ] I have added tests for any new physics that this PR adds to the code. - [x] *(For quokka-astro org members)* I have manually triggered the GPU tests with the magic comment `/azp run`. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information