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

add some missing header guards #2822

Merged
merged 5 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Source/diffusion/Castro_diffusion.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef CASTRO_DIFFUSION_H
#define CASTRO_DIFFUSION_H

///
/// Construct diffusion source at old time
Expand Down Expand Up @@ -46,3 +48,4 @@ void add_temp_diffusion_to_source (amrex::MultiFab& ext_src, amrex::MultiFab& st
amrex::Real mult_factor = 1.0);


#endif
4 changes: 2 additions & 2 deletions Source/diffusion/Diffusion.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CASTRO_DIFFUSION_H
#define CASTRO_DIFFUSION_H
#ifndef DIFFUSION_H
#define DIFFUSION_H

#include <AMReX_AmrLevel.H>
#include <AMReX_MLLinOp.H>
Expand Down
5 changes: 5 additions & 0 deletions Source/driver/Castro_io.H
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#ifndef CASTRO_IO_H
#define CASTRO_IO_H

extern std::string inputs_name;

#endif
4 changes: 4 additions & 0 deletions Source/gravity/Castro_gravity.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef CASTRO_GRAVITY_H
#define CASTRO_GRAVITY_H

///
/// Construct gravitational field at old timestep
///
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions Source/hydro/slope.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef SLOPE_H
#define SLOPE_H

#include <Castro.H>

#ifdef RADIATION
Expand Down Expand Up @@ -239,3 +242,4 @@ pslope(const Real* rho, const Real* p, const Real* src, const Real flatn,
}

}
#endif
3 changes: 3 additions & 0 deletions Source/mhd/Castro_mhd.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef CASTRO_MHD_H
#define CASTRO_MHD_H

advance_status construct_ctu_mhd_source(amrex::Real time, amrex::Real dt);

Expand Down Expand Up @@ -105,3 +107,4 @@
const int dir);


#endif
5 changes: 5 additions & 0 deletions Source/problems/Problem.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef PROBLEM_H
#define PROBLEM_H

/* problem-specific Castro:: declarations go here */

#ifdef DO_PROBLEM_POST_TIMESTEP
Expand All @@ -11,3 +14,5 @@ void problem_post_restart();
#ifdef DO_PROBLEM_POST_INIT
void problem_post_init();
#endif

#endif
5 changes: 5 additions & 0 deletions Source/problems/Problem_Derive.H
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#ifndef PROBLEM_DERIVE_H
#define PROBLEM_DERIVE_H

/* problem-specific stuff goes here */

#endif
5 changes: 5 additions & 0 deletions Source/problems/Problem_Derives.H
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
#ifndef PROBLEM_DERIVES_H
#define PROBLEM_DERIVES_H

// problem-specific derived variables would be put here

#endif
5 changes: 5 additions & 0 deletions Source/reactions/Castro_react.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef CASTRO_REACT_H
#define CASTRO_REACT_H

///
/// Perform any old-time reactions.
///
Expand Down Expand Up @@ -36,3 +39,5 @@
/// @param State State MultiFab
///
static bool valid_zones_to_burn(amrex::MultiFab& State);

#endif
3 changes: 3 additions & 0 deletions Source/rotation/Castro_rotation.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifndef CASTRO_ROTATION_H
#define CASTRO_ROTATION_H

///
/// Construct rotation source terms at old time
Expand Down Expand Up @@ -80,3 +82,4 @@
fill_rotational_psi(const Box& bx,
Array4<Real> const& psi,
const Real time);
#endif
5 changes: 5 additions & 0 deletions Source/sources/Castro_sources.H
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef CASTRO_SOURCES_H
#define CASTRO_SOURCES_H

///
/// Returns true if flag corresponding to source type ``src`` is set.
///
Expand Down Expand Up @@ -378,3 +381,5 @@
///

advance_status post_advance_operators (amrex::Real time, amrex::Real dt);

#endif