From 49909af4d89c1a25a917e5b6050e3f9461fb8043 Mon Sep 17 00:00:00 2001 From: ZhuHengrui <78500604+HengruiZhu99@users.noreply.github.com> Date: Fri, 31 Jan 2025 16:13:02 -0500 Subject: [PATCH] add two apple-with-apple tests (#625) * fixing ricci scalar * spin for kerr-schild * strong stability test * input script for stability test * fix bug and cleanup * delete unused variables * gauge wave test * add input for gauge wave, test still failing * add initial lapse, still does not fix the error * update input files * moving the awa tests to the pgen folder * fix default build --------- Co-authored-by: Hengrui Zhu --- inputs/z4c/awa/z4c_gauge_wave.athinput | 76 ++++++++ inputs/z4c/awa/z4c_stability.athinput | 76 ++++++++ src/outputs/history.cpp | 32 ++-- src/pgen/z4c_gauge_wave.cpp | 119 ++++++++++++ src/pgen/z4c_stability.cpp | 242 +++++++++++++++++++++++++ 5 files changed, 529 insertions(+), 16 deletions(-) create mode 100644 inputs/z4c/awa/z4c_gauge_wave.athinput create mode 100644 inputs/z4c/awa/z4c_stability.athinput create mode 100644 src/pgen/z4c_gauge_wave.cpp create mode 100644 src/pgen/z4c_stability.cpp diff --git a/inputs/z4c/awa/z4c_gauge_wave.athinput b/inputs/z4c/awa/z4c_gauge_wave.athinput new file mode 100644 index 000000000..5e05b99da --- /dev/null +++ b/inputs/z4c/awa/z4c_gauge_wave.athinput @@ -0,0 +1,76 @@ +# AthenaXXX input file for Z4c linear wave tests + + +problem = z4c linear waves +reference = e.g. Daverio et al. arxiv:1810.12346 (2018) + + +basename = gauge # problem ID: basename of output filenames + + +nghost = 2 # Number of ghost cells +nx1 = 50 # Number of zones in X1-direction +x1min = 0.0 # minimum value of X1 +x1max = 1.0 # maximum value of X1 +ix1_bc = periodic # inner-X1 boundary flag +ox1_bc = periodic # outer-X1 boundary flag + +nx2 = 4 # Number of zones in X2-direction +x2min = 0.0 # minimum value of X2 +x2max = 1.0 # maximum value of X2 +ix2_bc = periodic # inner-X2 boundary flag +ox2_bc = periodic # outer-X2 boundary flag + +nx3 = 4 # Number of zones in X3-direction +x3min = 0.0 # minimum value of X3 +x3max = 1.0 # maximum value of X3 +ix3_bc = periodic # inner-X3 boundary flag +ox3_bc = periodic # outer-X3 boundary flag + + +nx1 = 50 # Number of cells in each MeshBlock, X1-dir +nx2 = 4 # Number of cells in each MeshBlock, X2-dir +nx3 = 4 # Number of cells in each MeshBlock, X3-dir + +