Skip to content

Commit

Permalink
Merge branch 'development' into chongchong/multigroup-adv-pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
chongchonghe committed Jan 7, 2024
2 parents 386c6da + 5451412 commit ff57787
Show file tree
Hide file tree
Showing 38 changed files with 790 additions and 17 deletions.
17 changes: 17 additions & 0 deletions docs/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,20 @@ @ARTICLE{Jin_1996
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

@article{Krumholz_2007,
title = {Equations and {{Algorithms}} for {{Mixed-frame Flux-limited Diffusion Radiation Hydrodynamics}}},
author = {{Krumholz}, Mark R. and {Klein}, Richard I. and {McKee}, Christopher F. and {Bolstad}, John},
year = {2007},
month = sep,
journal = {The Astrophysical Journal},
volume = {667},
pages = {626--643},
issn = {0004-637X},
doi = {10.1086/520791},
url = {https://ui.adsabs.harvard.edu/abs/2007ApJ...667..626K},
urldate = {2023-10-18},
abstract = {We analyze the mixed-frame equations of radiation hydrodynamics under the approximations of flux-limited diffusion and a thermal radiation field and derive the minimal set of evolution equations that includes all terms that are of leading order in any regime of nonrelativistic radiation hydrodynamics. Our equations are accurate to first order in v/c in the static diffusion regime. In contrast, we show that previous lower order derivations of these equations omit leading terms in at least some regimes. In comparison to comoving-frame formulations of radiation hydrodynamics, our equations have the advantage that they manifestly conserve total energy, making them very well suited to numerical simulations, particularly with adaptive meshes. For systems in the static diffusion regime, our analysis also suggests an algorithm that is both simpler and faster than earlier comoving-frame methods. We implement this algorithm in the Orion adaptive mesh refinement code and show that it performs well in a range of test problems.},
keywords = {Astrophysics,Hydrodynamics,Methods: Numerical,Radiative Transfer},
annotation = {ADS Bibcode: 2007ApJ...667..626K},
file = {/Users/cche/Googledrive2/Academic/Zotero/Code/QUOKKA/Krumholz_plus_2007_Equations_and_Algorithms_for_Mixed-frame2.pdf}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added docs/tests/attach/radhydro_pulse_density-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/attach/radhydro_pulse_density.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/attach/radhydro_pulse_temperature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/attach/radhydro_pulse_velocity-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/tests/attach/radhydro_pulse_velocity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
4 changes: 2 additions & 2 deletions docs/tests/energy_exchange.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ The exact time-dependent solution for the matter temperature :math:`T` is:
We show the numerical results below:

.. figure:: radcoupling_rsla.png
.. figure:: attach/radcoupling_rsla.png
:alt: A figure showing the radiation temperature and material temperature as a function of time.

The radiation temperature and matter temperatures in the reduced speed-of-light approximation, along with the exact solution for the matter temperature.


.. figure:: radcoupling.png
.. figure:: attach/radcoupling.png
:alt: A figure showing the radiation temperature and material temperature as a function of time.

The radiation temperature and matter temperatures, along with the exact solution for the matter temperature.
2 changes: 2 additions & 0 deletions docs/tests/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ Listed here are the test problems that are included with Quokka. *This page is s
shu_osher
sms
energy_exchange
radhydro_uniform_adv
radhydro_pulse

83 changes: 83 additions & 0 deletions docs/tests/radhydro_pulse.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
.. Advecting radiation pulse test
Advecting radiation pulse test
=========================

This test demonstrates the code’s ability to deal with the relativistic
correction source terms that arise from the mixed frame formulation of
the RHD moment equations, in a fully-coupled RHD problem. The problems
involve the advection of the a pulse of radiation energy in an optically
thick (:math:`\tau \gg 1`) gas in both static (:math:`\beta \tau \ll 1`)
and dynamic (:math:`\beta \tau \gg 1`) diffusion regimes, with a uniform
background flow velocity :cite:`Krumholz_2007`.

Parameters
----------

Initial condition of the problem in static diffusion regime:

.. math::
\begin{align}
T = T_0 + (T_1 - T_0) \exp \left( - \frac{x^2}{2 w^2} \right), \\
w = 24 ~{\rm cm}, T_0 = 10^7 ~{\rm K}, T_1 = 2 \times 10^7 ~{\rm K} \\
\rho=\rho_0 \frac{T_0}{T}+\frac{a_{\mathrm{R}} \mu}{3 k_{\mathrm{B}}}\left(\frac{T_0^4}{T}-T^3\right) \\
\rho_0 = 1.2 ~{\rm g~cm^{-3}}, \mu = 2.33 ~m_{\rm H} \\
\kappa_P=\kappa_R=\kappa = 100 \mathrm{~cm}^2 \mathrm{~g}^{-1} \\
v = 10 ~{\rm km~s^{-1}} \\
\tau = \rho \kappa w = 3 \times 10^3, \beta = v/c = 3 \times 10^{-5}, \beta \tau = 9 \times 10^{-2}
\end{align}
The simulation is run till
:math:`t_{\rm end} = 2 w/v = 4.8 \times 10^{-5} ~{\rm s}`.

Initial condition of the problem in dynamic diffusion regime: same
parameters as in the static diffusion regime except

.. math::
\begin{align}
\kappa_P=\kappa_R=\kappa=1000 \mathrm{~cm}^2 \mathrm{~g}^{-1} \\
v = 1000 ~{\rm km~s^{-1}} \\
t_{\rm end} = 2 w/v = 1.2 \times 10^{-4} ~{\rm s} \\
\tau = \rho \kappa w = 3 \times 10^4, \beta = v/c = 3 \times 10^{-3}, \beta \tau = 90
\end{align}
Results
-------

Static diffusion regime:

.. figure:: attach/radhydro_pulse_temperature-1.png
:alt: radhydro_pulse_temperature-static-diffusion

radhydro_pulse_temperature-static-diffusion

.. figure:: attach/radhydro_pulse_density-1.png
:alt: radhydro_pulse_density-static-diffusion

radhydro_pulse_density-static-diffusion

.. figure:: attach/radhydro_pulse_velocity-1.png
:alt: radhydro_pulse_velocity-static-diffusion

radhydro_pulse_velocity-static-diffusion

Dynamic diffusion regime:

.. figure:: attach/radhydro_pulse_temperature.png
:alt: radhydro_pulse_temperature-dynamic-diffusion

radhydro_pulse_temperature-dynamic-diffusion

.. figure:: attach/radhydro_pulse_density.png
:alt: radhydro_pulse_density-dynamic-diffusion

radhydro_pulse_density-dynamic-diffusion

.. figure:: attach/radhydro_pulse_velocity.png
:alt: radhydro_pulse_velocity-dynamic-diffusion

radhydro_pulse_velocity-dynamic-diffusion
95 changes: 95 additions & 0 deletions docs/tests/radhydro_uniform_adv.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Uniform advecting radiation in diffusive limit
==============================================

In this test, we simulation an advecting uniform gas where radiation and
matter are in thermal equilibrium in the co-moving frame. Following the
Lorentz tranform, the initial radiation energy and flux in the lab frame
to first order in :math:`v/c` are :math:`E_r = a_r T^4` and
:math:`F_r = \frac{4}{3} v E_r`.

Parameters
----------

.. math::
\begin{align}
T_0 = 10^7~{\rm K} \\
\rho_0 = 1.2 ~{\rm g~cm^{-3}}, \mu = 2.33 ~m_{\rm H} \\
\kappa_P=\kappa_R=100 \mathrm{~cm}^2 \mathrm{~g}^{-1} \\
v_{x,0} = 10 ~{\rm km~s^{-1}} \\
E_{r,0} = a_r T_0^4 \\
F_{x,0} = \frac{4}{3} v_{x,0} E_{r,0} \\
t_{\rm end} = 4.8 \times 10^{-5} ~{\rm s}
\end{align}
Results
-------

With :math:`O(\beta \tau)` terms:

.. figure:: attach/radhydro_uniform_advecting_temperature.png
:alt: A figure showing the radiation temperature and material temperature as a function of time.

The radiation temperature and matter temperatures, along with the exact solution.

.. figure:: attach/radhydro_uniform_advecting_velocity.png
:alt: A figure showing the radiation velocity and material velocity as a function of time.

The matter velocity, along with the exact solution.

Without :math:`O(\beta \tau)` terms:

.. figure:: attach/radhydro_uniform_advecting_temperature-nobeta.png
:alt: A figure showing the radiation temperature and material temperature as a function of time.

The radiation temperature and matter temperatures, along with the exact solution.

.. figure:: attach/radhydro_uniform_advecting_velocity-nobeta.png
:alt: A figure showing the radiation velocity and material velocity as a function of time.

The matter velocity, along with the exact solution.


Physics
-------

In the transport equation, both the radiation energy and flux are
unchanged because the radiation flux and pressure are uniform. In the
matter-radiation exchange step, the source term is zero since the
radiation and matter are in equilibrium. Finally, the flux is updated
following

.. math::
\mathbf{F}_{r}^{(t+1)} = \frac{\mathbf{F}_{r}^{(t)} + \Delta t \left[ \rho \kappa_P \left(\frac{4 \pi B}{c}\right) \boldsymbol{v}c + \rho \kappa_F (\boldsymbol{v} :\boldsymbol{P}_r) c \right] }{1+\rho \kappa_{F} {c} \Delta t}.
With :math:`F_{r}^{(t)} = 4 v E_{r}^{(t)} / 3`, and
:math:`\kappa_P=\kappa_R=\kappa`, we have

.. math::
\mathbf{F}_{r}^{(t+1)} = \frac{\frac{4}{3} v E_r^{(t)} + \Delta t \left[ \rho \kappa E_r^{(t)} \boldsymbol{v}c + \rho \kappa \boldsymbol{v} (\frac{1}{3}E_r^{(t)}) c \right] }{1+\rho \kappa {c} \Delta t} = \frac{4}{3} v E_r^{(t)} = F_{r}^{(t)}
Therefore, :math:`F_r` remains constant. This demonstrates that the code
is invariant under Lorentz transformation.

We can also show that, with the :math:`O(\beta \tau)` terms in the
matter-radiation exchange step, the space-like component of the
radiation four-force vanishes:

.. math::
\begin{align}
-G &= -\rho \kappa_F \frac{\boldsymbol{F}_r}{c} + \rho \kappa_P\left(\frac{4 \pi B}{c}\right) \frac{\boldsymbol{v}}{c}+\rho \kappa_F \frac{\boldsymbol{v} :\boldsymbol{P}_r}{c} \\
&= -\rho \kappa \frac{4}{3} E_r v / c + \rho \kappa E_r v / c+ \rho \kappa \frac{1}{3} E_r v / c \\
&= 0
\end{align}
.. |radhydro_uniform_advecting_temperature| image:: attach/radhydro_uniform_advecting_temperature.png
.. |radhydro_uniform_advecting_velocity| image:: attach/radhydro_uniform_advecting_velocity.png
.. |radhydro_uniform_advecting_temperature-nobeta| image:: attach/radhydro_uniform_advecting_temperature-nobeta.png
.. |radhydro_uniform_advecting_velocity-nobeta| image:: attach/radhydro_uniform_advecting_velocity-nobeta.png
2 changes: 1 addition & 1 deletion docs/tests/radshock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Since the solution is given assuming radiation diffusion, we set the Eddington f
We use the RK2 integrator with a CFL number of 0.2 and a mesh of 256 equally-spaced zones. After 3 shock crossing times, we obtain a solution for the radiation temperature and matter temperature that agrees to better than 0.5% (in relative L1 norm) with the steady-state ODE solution to the radiation hydrodynamics equations:


.. figure:: radshock_cgs_temperature.png
.. figure:: attach/radshock_cgs_temperature.png
:alt: A figure showing the radiation temperature and material temperature as a function of position.

The radiation temperature is shown in the black solid and dashed lines, with the dashed line showing the semi-analytic solution. The material temperature is shown in the red lines, with the semi-analytic solution shown with the dashed line.
2 changes: 1 addition & 1 deletion docs/tests/shu_osher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ the interface states in the characteristic variables, as done in §4 of :cite:`S
The reference solution is computed using Athena++ with PPM reconstruction in the characteristic
variables on a grid of 1600 zones.

.. figure:: hydro_shuosher.png
.. figure:: attach/hydro_shuosher.png
:alt: A figure showing the numerical solution to the Shu-Osher test.

The density is shown as the solid blue line. There is no exact solution for this problem.
2 changes: 1 addition & 1 deletion docs/tests/sms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ We use the RK2 integrator with a fixed timestep of :math:`10^{-3}`
and a mesh of 100 equally-spaced cells. The contact discontinuity
is initially placed at :math:`x=0.5`.

.. figure:: hydro_sms.png
.. figure:: attach/hydro_sms.png
:alt: A figure showing the numerical solution to the slow-moving shock test.

The density is shown as the solid blue line. The exact solution is the solid orange line.
2 changes: 1 addition & 1 deletion extern/Microphysics
Submodule Microphysics updated 244 files
2 changes: 1 addition & 1 deletion extern/amrex
Submodule amrex updated 93 files
+2 −2 .github/workflows/bittree.yml
+3 −3 .github/workflows/clang.yml
+4 −1 .github/workflows/cleanup-cache-postpr.yml
+8 −5 .github/workflows/cleanup-cache.yml
+1 −0 .github/workflows/codeql.yml
+2 −1 .github/workflows/dependencies/dependencies_hip.sh
+13 −13 .github/workflows/gcc.yml
+2 −2 .github/workflows/hypre.yml
+8 −4 .github/workflows/intel.yml
+1 −1 .github/workflows/petsc.yml
+1 −1 .github/workflows/smoke.yml
+1 −1 .github/workflows/sundials.yml
+41 −0 CHANGES
+41 −0 Docs/sphinx_documentation/source/AMReX_Profiling_Tools.rst
+19 −17 Docs/sphinx_documentation/source/GPU.rst
+6 −3 Docs/sphinx_documentation/source/LinearSolvers.rst
+5 −4 Docs/sphinx_documentation/source/Particle.rst
+1 −1 Docs/sphinx_documentation/source/conf.py
+0 −1 Src/Amr/AMReX_Amr.H
+0 −1 Src/Amr/AMReX_AmrLevel.H
+0 −2 Src/Amr/AMReX_Derive.H
+0 −1 Src/Amr/AMReX_LevelBld.H
+0 −1 Src/Amr/AMReX_StateData.H
+0 −2 Src/Amr/AMReX_StateDescriptor.H
+0 −1 Src/AmrCore/AMReX_AmrCore.H
+1 −1 Src/AmrCore/AMReX_AmrMesh.cpp
+0 −2 Src/AmrCore/AMReX_Cluster.H
+0 −2 Src/AmrCore/AMReX_ErrorList.H
+0 −1 Src/AmrCore/AMReX_FillPatcher.H
+0 −1 Src/AmrCore/AMReX_FluxRegister.H
+0 −1 Src/AmrCore/AMReX_InterpFaceRegister.H
+0 −11 Src/AmrCore/AMReX_Interpolater.H
+0 −2 Src/AmrCore/AMReX_TagBox.H
+5 −1 Src/Base/AMReX_Arena.H
+0 −1 Src/Base/AMReX_BArena.H
+2 −3 Src/Base/AMReX_BCRec.H
+24 −2 Src/Base/AMReX_BaseFab.H
+3 −5 Src/Base/AMReX_BoxDomain.H
+0 −1 Src/Base/AMReX_BoxList.H
+0 −1 Src/Base/AMReX_CArena.H
+0 −1 Src/Base/AMReX_CoordSys.H
+0 −1 Src/Base/AMReX_DistributionMapping.H
+0 −1 Src/Base/AMReX_FACopyDescriptor.H
+0 −1 Src/Base/AMReX_FPC.H
+5 −0 Src/Base/AMReX_FabArrayBase.H
+20 −0 Src/Base/AMReX_FabArrayBase.cpp
+187 −0 Src/Base/AMReX_FabArrayUtility.H
+8 −8 Src/Base/AMReX_Geometry.H
+1 −0 Src/Base/AMReX_GpuTypes.H
+0 −1 Src/Base/AMReX_IArrayBox.H
+0 −1 Src/Base/AMReX_IndexType.H
+0 −1 Src/Base/AMReX_IntVect.H
+24 −0 Src/Base/AMReX_Loop.H
+15 −15 Src/Base/AMReX_MultiFabUtil.H
+0 −1 Src/Base/AMReX_NFiles.H
+1 −1 Src/Base/AMReX_NonLocalBC.H
+0 −1 Src/Base/AMReX_Orientation.H
+5 −1 Src/Base/AMReX_PArena.H
+0 −1 Src/Base/AMReX_ParmParse.H
+0 −1 Src/Base/AMReX_ParmParse.cpp
+7 −1 Src/Base/AMReX_Random.cpp
+0 −1 Src/Base/AMReX_RealVect.H
+1 −2 Src/Base/AMReX_RungeKutta.H
+12 −0 Src/Base/AMReX_TypeTraits.H
+0 −1 Src/Base/AMReX_Vector.H
+0 −1 Src/Base/AMReX_VisMF.H
+0 −1 Src/Boundary/AMReX_BoundCond.H
+0 −1 Src/Boundary/AMReX_FabSet.H
+0 −1 Src/Boundary/AMReX_Mask.H
+0 −1 Src/Boundary/AMReX_YAFluxRegister.H
+0 −1 Src/EB/AMReX_EBFluxRegister.H
+0 −1 Src/Extern/Bittree/AMReX_Bittree.H
+0 −3 Src/Extern/SUNDIALS/AMReX_NVector_MultiFab.cpp
+0 −1 Src/Extern/SUNDIALS/AMReX_SUNMemory.H
+0 −3 Src/Extern/SUNDIALS/AMReX_Sundials_Core.H
+72 −40 Src/LinearSolvers/MLMG/AMReX_MLCGSolver.H
+60 −23 Src/LinearSolvers/MLMG/AMReX_MLLinOp.H
+104 −101 Src/LinearSolvers/MLMG/AMReX_MLMG.H
+0 −9 Src/Particle/AMReX_Particle.H
+58 −19 Src/Particle/AMReX_ParticleContainerI.H
+25 −27 Src/Particle/AMReX_ParticleIO.H
+24 −4 Src/Particle/AMReX_ParticleInit.H
+82 −25 Src/Particle/AMReX_ParticleTile.H
+5 −3 Src/Particle/AMReX_ParticleTransformation.H
+21 −1 Src/Particle/AMReX_ParticleUtil.H
+21 −2 Src/Particle/AMReX_StructOfArrays.H
+9 −7 Src/Particle/AMReX_WriteBinaryParticleData.H
+12 −0 Tests/Particles/RedistributeSOA/main.cpp
+1 −1 Tools/CMake/AMReXFlagsTargets.cmake
+10 −0 Tools/CMake/AMReXOptions.cmake
+6 −0 Tools/CMake/AMReXSYCL.cmake
+2 −0 Tools/GNUMake/Make.machines
+16 −3 Tools/Postprocessing/C_Src/particle_compare.cpp
2 changes: 1 addition & 1 deletion extern/openPMD-api
Submodule openPMD-api updated 241 files
2 changes: 1 addition & 1 deletion extern/yaml-cpp
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ add_subdirectory(RadTube)
add_subdirectory(RadhydroShell)
add_subdirectory(RadhydroShock)
add_subdirectory(RadhydroShockCGS)
add_subdirectory(RadhydroShockMultigroup)
add_subdirectory(RadhydroUniformAdvecting)
add_subdirectory(RadhydroPulse)
add_subdirectory(RadhydroPulseGrey)
Expand Down
12 changes: 7 additions & 5 deletions src/RadhydroPulse/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
add_executable(test_radhydro_pulse test_radhydro_pulse.cpp ../fextract.cpp ${QuokkaObjSources})
if (AMReX_SPACEDIM EQUAL 1)
add_executable(test_radhydro_pulse test_radhydro_pulse.cpp ../fextract.cpp ${QuokkaObjSources})

if(AMReX_GPU_BACKEND MATCHES "CUDA")
setup_target_for_cuda_compilation(test_radhydro_pulse)
endif(AMReX_GPU_BACKEND MATCHES "CUDA")
if(AMReX_GPU_BACKEND MATCHES "CUDA")
setup_target_for_cuda_compilation(test_radhydro_pulse)
endif(AMReX_GPU_BACKEND MATCHES "CUDA")

add_test(NAME RadhydroPulse COMMAND test_radhydro_pulse RadhydroPulse.in WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
add_test(NAME RadhydroPulse COMMAND test_radhydro_pulse RadhydroPulse.in WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
endif()
4 changes: 2 additions & 2 deletions src/RadhydroPulse/test_radhydro_pulse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ constexpr double v0_nonadv = 0.; // non-advecting pulse
// static diffusion: tau = 2e3, beta = 3e-5, beta tau = 6e-2
constexpr double kappa0 = 100.; // cm^2 g^-1
constexpr double v0_adv = 1.0e6; // advecting pulse
constexpr double max_time = 4.8e-5; // max_time = 2.0 * width / v1;
constexpr double max_time = 2.4e-5; // max_time = 2.0 * width / v1;

// dynamic diffusion: tau = 2e4, beta = 3e-3, beta tau = 60
// constexpr double kappa0 = 1000.; // cm^2 g^-1
Expand Down Expand Up @@ -350,7 +350,7 @@ auto problem_main() -> int
err_norm += std::abs(Tgas2[i] - Trad[i]);
sol_norm += std::abs(Trad[i]) * 3.0;
}
const double error_tol = 0.001;
const double error_tol = 0.006;
const double rel_error = err_norm / sol_norm;
amrex::Print() << "Relative L1 error norm = " << rel_error << std::endl;

Expand Down
7 changes: 7 additions & 0 deletions src/RadhydroShockMultigroup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
add_executable(test_radhydro_shock_multigroup test_radhydro_shock_multigroup.cpp ../fextract.cpp ../interpolate.cpp ${QuokkaObjSources})

if(AMReX_GPU_BACKEND MATCHES "CUDA")
setup_target_for_cuda_compilation(test_radhydro_shock_multigroup)
endif(AMReX_GPU_BACKEND MATCHES "CUDA")

add_test(NAME RadhydroShockMultigroup COMMAND test_radhydro_shock_multigroup radshockMG.in WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
Loading

0 comments on commit ff57787

Please sign in to comment.