From 9935adf51b5ab2e735ee954ee15a70d15cf40c87 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Mon, 22 Apr 2024 14:32:55 -0400 Subject: [PATCH] add some missing header guards (#2822) --- Source/diffusion/Castro_diffusion.H | 3 +++ Source/diffusion/Diffusion.H | 4 ++-- Source/driver/Castro_io.H | 5 +++++ Source/gravity/Castro_gravity.H | 4 ++++ Source/hydro/slope.H | 4 ++++ Source/mhd/Castro_mhd.H | 3 +++ Source/problems/Problem.H | 5 +++++ Source/problems/Problem_Derive.H | 5 +++++ Source/problems/Problem_Derives.H | 5 +++++ Source/reactions/Castro_react.H | 5 +++++ Source/rotation/Castro_rotation.H | 3 +++ Source/sources/Castro_sources.H | 5 +++++ 12 files changed, 49 insertions(+), 2 deletions(-) diff --git a/Source/diffusion/Castro_diffusion.H b/Source/diffusion/Castro_diffusion.H index d48eedad6b..2f663b21d9 100644 --- a/Source/diffusion/Castro_diffusion.H +++ b/Source/diffusion/Castro_diffusion.H @@ -1,3 +1,5 @@ +#ifndef CASTRO_DIFFUSION_H +#define CASTRO_DIFFUSION_H /// /// Construct diffusion source at old time @@ -46,3 +48,4 @@ void add_temp_diffusion_to_source (amrex::MultiFab& ext_src, amrex::MultiFab& st amrex::Real mult_factor = 1.0); +#endif diff --git a/Source/diffusion/Diffusion.H b/Source/diffusion/Diffusion.H index aa3a875669..5c5a670d79 100644 --- a/Source/diffusion/Diffusion.H +++ b/Source/diffusion/Diffusion.H @@ -1,5 +1,5 @@ -#ifndef CASTRO_DIFFUSION_H -#define CASTRO_DIFFUSION_H +#ifndef DIFFUSION_H +#define DIFFUSION_H #include #include diff --git a/Source/driver/Castro_io.H b/Source/driver/Castro_io.H index d630db0ade..d47c74019f 100644 --- a/Source/driver/Castro_io.H +++ b/Source/driver/Castro_io.H @@ -1 +1,6 @@ +#ifndef CASTRO_IO_H +#define CASTRO_IO_H + extern std::string inputs_name; + +#endif diff --git a/Source/gravity/Castro_gravity.H b/Source/gravity/Castro_gravity.H index b9caa2a1bd..3943d55f90 100644 --- a/Source/gravity/Castro_gravity.H +++ b/Source/gravity/Castro_gravity.H @@ -1,3 +1,6 @@ +#ifndef CASTRO_GRAVITY_H +#define CASTRO_GRAVITY_H + /// /// Construct gravitational field at old timestep /// @@ -35,3 +38,4 @@ /// void construct_new_gravity_source(amrex::MultiFab& source, amrex::MultiFab& state_old, amrex::MultiFab& state_new, amrex::Real time, amrex::Real dt); +#endif diff --git a/Source/hydro/slope.H b/Source/hydro/slope.H index 212f00c123..9a8110f157 100644 --- a/Source/hydro/slope.H +++ b/Source/hydro/slope.H @@ -1,3 +1,6 @@ +#ifndef SLOPE_H +#define SLOPE_H + #include #ifdef RADIATION @@ -239,3 +242,4 @@ pslope(const Real* rho, const Real* p, const Real* src, const Real flatn, } } +#endif diff --git a/Source/mhd/Castro_mhd.H b/Source/mhd/Castro_mhd.H index a15a323207..99821b31c7 100644 --- a/Source/mhd/Castro_mhd.H +++ b/Source/mhd/Castro_mhd.H @@ -1,3 +1,5 @@ +#ifndef CASTRO_MHD_H +#define CASTRO_MHD_H advance_status construct_ctu_mhd_source(amrex::Real time, amrex::Real dt); @@ -105,3 +107,4 @@ const int dir); +#endif diff --git a/Source/problems/Problem.H b/Source/problems/Problem.H index a32930b169..0a385762c9 100644 --- a/Source/problems/Problem.H +++ b/Source/problems/Problem.H @@ -1,3 +1,6 @@ +#ifndef PROBLEM_H +#define PROBLEM_H + /* problem-specific Castro:: declarations go here */ #ifdef DO_PROBLEM_POST_TIMESTEP @@ -11,3 +14,5 @@ void problem_post_restart(); #ifdef DO_PROBLEM_POST_INIT void problem_post_init(); #endif + +#endif diff --git a/Source/problems/Problem_Derive.H b/Source/problems/Problem_Derive.H index 0db4669c53..0cfcfe6a31 100644 --- a/Source/problems/Problem_Derive.H +++ b/Source/problems/Problem_Derive.H @@ -1 +1,6 @@ +#ifndef PROBLEM_DERIVE_H +#define PROBLEM_DERIVE_H + /* problem-specific stuff goes here */ + +#endif diff --git a/Source/problems/Problem_Derives.H b/Source/problems/Problem_Derives.H index ba416c112e..e09391c664 100644 --- a/Source/problems/Problem_Derives.H +++ b/Source/problems/Problem_Derives.H @@ -1 +1,6 @@ +#ifndef PROBLEM_DERIVES_H +#define PROBLEM_DERIVES_H + // problem-specific derived variables would be put here + +#endif diff --git a/Source/reactions/Castro_react.H b/Source/reactions/Castro_react.H index 815e0a2774..76aa956761 100644 --- a/Source/reactions/Castro_react.H +++ b/Source/reactions/Castro_react.H @@ -1,3 +1,6 @@ +#ifndef CASTRO_REACT_H +#define CASTRO_REACT_H + /// /// Perform any old-time reactions. /// @@ -36,3 +39,5 @@ /// @param State State MultiFab /// static bool valid_zones_to_burn(amrex::MultiFab& State); + +#endif diff --git a/Source/rotation/Castro_rotation.H b/Source/rotation/Castro_rotation.H index 0fec911450..af42388cc3 100644 --- a/Source/rotation/Castro_rotation.H +++ b/Source/rotation/Castro_rotation.H @@ -1,3 +1,5 @@ +#ifndef CASTRO_ROTATION_H +#define CASTRO_ROTATION_H /// /// Construct rotation source terms at old time @@ -80,3 +82,4 @@ fill_rotational_psi(const Box& bx, Array4 const& psi, const Real time); +#endif diff --git a/Source/sources/Castro_sources.H b/Source/sources/Castro_sources.H index 8dc34db4b3..16eeb3a17e 100644 --- a/Source/sources/Castro_sources.H +++ b/Source/sources/Castro_sources.H @@ -1,3 +1,6 @@ +#ifndef CASTRO_SOURCES_H +#define CASTRO_SOURCES_H + /// /// Returns true if flag corresponding to source type ``src`` is set. /// @@ -378,3 +381,5 @@ /// advance_status post_advance_operators (amrex::Real time, amrex::Real dt); + +#endif