Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openPMD output is broken #742

Open
BenWibking opened this issue Sep 17, 2024 · 0 comments
Open

openPMD output is broken #742

BenWibking opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working I/O input/output

Comments

@BenWibking
Copy link
Collaborator

Describe the bug
OpenPMD output doesn't work with the latest development commit. Discovered when testing #741.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout commit 60a37f0.
  2. Run the HydroBlast3D problem
  3. See error:
ubuntu@0301436d6d84:/workspaces/quokka/tests$ ../build/src/problems/HydroBlast3D/test_hydro3d_blast blast_32.in 
Initializing AMReX (24.09)...
MPI initialized with 1 MPI processes
MPI initialized with thread support level 0
AMReX (24.09) initialized
amrex::Abort::0:: (-2,-2,-2,6) is out of bound (0:31,0:31,0:31,0:8) !!!
SIGABRT
See Backtrace.0 file for details

Backtrace:


 0: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x6fa4c0) [0xaaaad180a4c0]
    amrex::BLBackTrace::print_backtrace_info(_IO_FILE*) at /workspaces/quokka/extern/amrex/Src/Base/AMReX_BLBackTrace.cpp:203 (discriminator 1)

 1: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x6f9dd8) [0xaaaad1809dd8]
    amrex::BLBackTrace::handler(int) at /workspaces/quokka/extern/amrex/Src/Base/AMReX_BLBackTrace.cpp:101

 2: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x6b9b1c) [0xaaaad17c9b1c]
    amrex::ParallelDescriptor::Abort(int, bool) at /workspaces/quokka/extern/amrex/Src/Base/AMReX_ParallelDescriptor.cpp:219

 3: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x62d6a8) [0xaaaad173d6a8]
    amrex::Error_host(char const*, char const*) at /workspaces/quokka/extern/amrex/Src/Base/AMReX.cpp:252

 4: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x62d5c0) [0xaaaad173d5c0]
    amrex::Abort(char const*) at /workspaces/quokka/extern/amrex/Src/Base/AMReX.H:160
 (inlined by) amrex::Abort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /workspaces/quokka/extern/amrex/Src/Base/AMReX.cpp:223

 5: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x36196c) [0xaaaad147196c]
    amrex::Array4<double>::index_assert(int, int, int, int) const at /workspaces/quokka/extern/amrex/Src/Base/AMReX_Array4.H:279 (discriminator 53)

 6: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x397750) [0xaaaad14a7750]
    double& amrex::Array4<double>::operator()<double, 0>(int, int, int, int) const at /workspaces/quokka/extern/amrex/Src/Base/AMReX_Array4.H:144
 (inlined by) AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const::{lambda(int, int, int, int)#1}::operator()(int, int, int, int) const at /workspaces/quokka/src/simulation.hpp:2049

 7: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x42d394) [0xaaaad153d394]
    std::enable_if<amrex::IsFabArray<amrex::MultiFab, void>::value, void>::type amrex::experimental::detail::ParallelFor<amrex::MultiFab, AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const::{lambda(int, int, int, int)#1}>(amrex::MultiFab const&, amrex::IntVectND<3> const&, amrex::IntVectND<3> const&, bool, AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const::{lambda(int, int, int, int)#1} const&) at /workspaces/quokka/extern/amrex/Src/Base/AMReX_MFParallelForC.H:26 (discriminator 3)

 8: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x3be0f8) [0xaaaad14ce0f8]
    std::enable_if<amrex::IsFabArray<amrex::MultiFab, void>::value, void>::type amrex::experimental::ParallelFor<amrex::MultiFab, AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const::{lambda(int, int, int, int)#1}>(amrex::MultiFab const&, amrex::IntVectND<3> const&, AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const::{lambda(int, int, int, int)#1}&&) at /workspaces/quokka/extern/amrex/Src/Base/AMReX_MFParallelFor.H:98

 9: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x397934) [0xaaaad14a7934]
    AMRSimulation<SedovProblem>::AverageFCToCC(amrex::MultiFab&, amrex::MultiFab const&, int, int, int, int, int) const at /workspaces/quokka/src/simulation.hpp:2053

10: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x3802b0) [0xaaaad14902b0]
    AMRSimulation<SedovProblem>::PlotFileMFAtLevel(int, int) at /workspaces/quokka/src/simulation.hpp:2097

11: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x37e514) [0xaaaad148e514]
    AMRSimulation<SedovProblem>::PlotFileMF(int) at /workspaces/quokka/src/simulation.hpp:2115 (discriminator 2)

12: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x36b3b0) [0xaaaad147b3b0]
    AMRSimulation<SedovProblem>::WritePlotFile() at /workspaces/quokka/src/simulation.hpp:2310

13: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x35d468) [0xaaaad146d468]
    AMRSimulation<SedovProblem>::setInitialConditions() at /workspaces/quokka/src/simulation.hpp:686

14: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x320d0c) [0xaaaad1430d0c]
    problem_main() at /workspaces/quokka/src/problems/HydroBlast3D/test_hydro3d_blast.cpp:267

15: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x5b066c) [0xaaaad16c066c]
    main at /workspaces/quokka/src/main.cpp:54 (discriminator 1)

16: /lib/aarch64-linux-gnu/libc.so.6(+0x284c4) [0xffffb8c684c4]

17: /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0x98) [0xffffb8c68598]

18: ../build/src/problems/HydroBlast3D/test_hydro3d_blast(+0x31cbf0) [0xaaaad142cbf0]
    ?? ??:0


===== TinyProfilers ======
AMRSimulation::setInitialConditions()
AMRSimulation::WritePlotFile()

Additional context
We don't currently have a CI test for openPMD output.

@BenWibking BenWibking added bug Something isn't working I/O input/output labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I/O input/output
Projects
None yet
Development

No branches or pull requests

1 participant