foap4: Adaptive mesh refinement with OpenACC/OpenMP, MPI, and p4est
Jannis TeunissenHéctor R. Olivares SánchezJVJesse VosLeon OostrumJohan HiddingVictor AziziYuhao ZhouHao WuAdrian KellyOlaf WillocxChun XiaRony Keppens +1
Jannis Teunissen
Héctor R. Olivares Sánchez
JVJesse Vos
Leon Oostrum
Johan Hidding
Victor Azizi
Yuhao Zhou
Hao Wu
Adrian Kelly
Olaf Willocx
Chun Xia
Rony Keppens
+13
foap4 is an adaptive mesh refinement (AMR) framework written in Fortran, combining OpenACC/OpenMP, MPI, and the p4est library, to explore how existing parallel AMR codes can gain GPU support. Benchmarks solving Euler's equations with explicit time integration in 2D and 3D, on static and adaptive meshes, show efficient GPU execution even for small grid blocks like $8^3$ or $16^3$. With NVIDIA's nvfortran compiler, OpenACC and OpenMP offloading perform similarly, and gfortran results indicate portability.

arXiv ·
· May 8, 2026