Skip to content
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
6 changes: 3 additions & 3 deletions include/bout/array.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* o Added Umpire support, in multiple iterations/variations
*/

#ifndef __ARRAY_H__
#define __ARRAY_H__
#ifndef BOUT_ARRAY_H
#define BOUT_ARRAY_H

#include <algorithm>
#include <map>
Expand Down Expand Up @@ -486,4 +486,4 @@ bool operator==(const Array<T, B1>& lhs, const Array<T, B2>& rhs) {
return std::equal(lhs.begin(), lhs.end(), rhs.begin());
}

#endif // __ARRAY_H__
#endif // BOUT_ARRAY_H
6 changes: 3 additions & 3 deletions include/bout/assert.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
*/

#ifndef __BOUT_ASSERT_H__
#define __BOUT_ASSERT_H__
#ifndef BOUT_ASSERT_H
#define BOUT_ASSERT_H

#include "bout/boutexception.hxx"

Expand Down Expand Up @@ -65,4 +65,4 @@
#define ASSERT3(condition)
#endif

#endif // __BOUT_ASSERT_H__
#endif // BOUT_ASSERT_H
6 changes: 3 additions & 3 deletions include/bout/boundary_factory.hxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

class BoundaryFactory;

#ifndef __BNDRY_FACTORY_H__
#define __BNDRY_FACTORY_H__
#ifndef BOUT_BNDRY_FACTORY_H
#define BOUT_BNDRY_FACTORY_H

#include "bout/boundary_op.hxx"
#include "bout/boundary_region.hxx"
Expand Down Expand Up @@ -126,4 +126,4 @@ private:
// BoundaryModifier* findBoundaryMod(const string &s);
};

#endif // __BNDRY_FACTORY_H__
#endif // BOUT_BNDRY_FACTORY_H
6 changes: 3 additions & 3 deletions include/bout/boundary_region.hxx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

class BoundaryRegion;

#ifndef __BNDRY_REGION_H__
#define __BNDRY_REGION_H__
#ifndef BOUT_BNDRY_REGION_H
#define BOUT_BNDRY_REGION_H

#include <string>
#include <utility>
Expand Down Expand Up @@ -142,4 +142,4 @@ private:
int xs, xe;
};

#endif // __BNDRY_REGION_H__
#endif // BOUT_BNDRY_REGION_H
6 changes: 3 additions & 3 deletions include/bout/boundary_standard.hxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Some standard boundary conditions

#ifndef __BNDRY_STD_H__
#define __BNDRY_STD_H__
#ifndef BOUT_BNDRY_STD_H
#define BOUT_BNDRY_STD_H

#include "bout/boundary_op.hxx"
#include "bout/bout_types.hxx"
Expand Down Expand Up @@ -516,4 +516,4 @@ public:
private:
};

#endif // __BNDRY_STD_H__
#endif // BOUT_BNDRY_STD_H
6 changes: 3 additions & 3 deletions include/bout/bout_enum_class.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with BOUT++. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/

#ifndef __BOUT_ENUM_CLASS_H__
#define __BOUT_ENUM_CLASS_H__
#ifndef BOUT_ENUM_CLASS_H
#define BOUT_ENUM_CLASS_H

#include "bout/boutexception.hxx"
#include "bout/macro_for_each.hxx"
Expand Down Expand Up @@ -100,4 +100,4 @@
return out << toString(e); \
}

#endif // __BOUT_ENUM_CLASS_H__
#endif // BOUT_ENUM_CLASS_H
6 changes: 3 additions & 3 deletions include/bout/bout_types.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* along with BOUT++. If not, see <http://www.gnu.org/licenses/>.
**************************************************************************/

#ifndef __BOUT_TYPES_H__
#define __BOUT_TYPES_H__
#ifndef BOUT_TYPES_H
#define BOUT_TYPES_H

#include <limits>
#include <string>
Expand Down Expand Up @@ -140,4 +140,4 @@ struct enumWrapper {
/// Boundary condition function
using FuncPtr = BoutReal (*)(BoutReal t, BoutReal x, BoutReal y, BoutReal z);

#endif // __BOUT_TYPES_H__
#endif // BOUT_TYPES_H
6 changes: 3 additions & 3 deletions include/bout/boutcomm.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

class BoutComm;

#ifndef __BOUTCOMM_H__
#define __BOUTCOMM_H__
#ifndef BOUT_BOUTCOMM_H
#define BOUT_BOUTCOMM_H

#include <mpi.h>

Expand Down Expand Up @@ -68,4 +68,4 @@ private:
static BoutComm* instance; ///< The only instance of this class (Singleton)
};

#endif // __BOUTCOMM_H__
#endif // BOUT_BOUTCOMM_H
6 changes: 3 additions & 3 deletions include/bout/constants.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*
**************************************************************************/

#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__
#ifndef BOUT_CONSTANTS_H
#define BOUT_CONSTANTS_H

#include <bout/bout_types.hxx>

Expand All @@ -28,4 +28,4 @@ constexpr BoutReal M_Deuterium = 2.01410178 * amu; ///< Mass of a Deuterium atom
constexpr BoutReal M_Tritium = 3.0160492 * amu; ///< Mass of a Tritium atom
} // namespace SI

#endif // __CONSTANTS_H__
#endif // BOUT_CONSTANTS_H
6 changes: 3 additions & 3 deletions include/bout/coordinates.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
*
**************************************************************************/

#ifndef __COORDINATES_H__
#define __COORDINATES_H__
#ifndef BOUT_COORDINATES_H
#define BOUT_COORDINATES_H

#include "bout/field2d.hxx"
#include "bout/field3d.hxx"
Expand Down Expand Up @@ -262,4 +262,4 @@ private:
};
*/

#endif // __COORDINATES_H__
#endif // BOUT_COORDINATES_H
6 changes: 3 additions & 3 deletions include/bout/cyclic_reduction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
*
************************************************************************/

#ifndef __CYCLIC_REDUCE_H__
#define __CYCLIC_REDUCE_H__
#ifndef BOUT_CYCLIC_REDUCE_H
#define BOUT_CYCLIC_REDUCE_H

#ifdef DIAGNOSE
#undef DIAGNOSE
Expand Down Expand Up @@ -640,4 +640,4 @@ private:
}
};

#endif // __CYCLIC_REDUCE_H__
#endif // BOUT_CYCLIC_REDUCE_H
6 changes: 3 additions & 3 deletions include/bout/dcomplex.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* along with BOUT++. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __DCOMPLEX_H__
#define __DCOMPLEX_H__
#ifndef BOUT_DCOMPLEX_H
#define BOUT_DCOMPLEX_H

#include "bout/bout_types.hxx"
#include <complex>
Expand All @@ -44,4 +44,4 @@ struct fcmplx {
BoutReal r, i;
};

#endif // __DCOMPLEX_H__
#endif // BOUT_DCOMPLEX_H
6 changes: 3 additions & 3 deletions include/bout/derivs.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
*
**************************************************************************/

#ifndef __DERIVS_H__
#define __DERIVS_H__
#ifndef BOUT_DERIVS_H
#define BOUT_DERIVS_H

#include "bout/field2d.hxx"
#include "bout/field3d.hxx"
Expand Down Expand Up @@ -701,4 +701,4 @@ Coordinates::FieldMetric D2DYDZ(const Field2D& f, CELL_LOC outloc = CELL_DEFAULT
const std::string& method = "DEFAULT",
const std::string& region = "RGN_NOBNDRY");

#endif // __DERIVS_H__
#endif // BOUT_DERIVS_H
6 changes: 3 additions & 3 deletions include/bout/difops.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
*
*******************************************************************************/

#ifndef __DIFOPS_H__
#define __DIFOPS_H__
#ifndef BOUT_DIFOPS_H
#define BOUT_DIFOPS_H

#include "bout/field2d.hxx"
#include "bout/field3d.hxx"
Expand Down Expand Up @@ -310,4 +310,4 @@ Field3D bracket(const Field3D& f, const Field2D& g, BRACKET_METHOD method = BRAC
Field3D bracket(const Field3D& f, const Field3D& g, BRACKET_METHOD method = BRACKET_STD,
CELL_LOC outloc = CELL_DEFAULT, Solver* solver = nullptr);

#endif /* __DIFOPS_H__ */
#endif /* BOUT_DIFOPS_H */
6 changes: 3 additions & 3 deletions include/bout/expr.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
**************************************************************************/

#ifndef __EXPR_H__
#define __EXPR_H__
#ifndef BOUT_EXPR_H
#define BOUT_EXPR_H

#warning expr.hxx is deprecated. Do not use!

Expand Down Expand Up @@ -205,4 +205,4 @@ const Field3D eval3D(Expr e) {
return result;
}

#endif // __EXPR_H__
#endif // BOUT_EXPR_H
6 changes: 3 additions & 3 deletions include/bout/fft.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*
*******************************************************************************/

#ifndef __FFT_H__
#define __FFT_H__
#ifndef BOUT_FFT_H
#define BOUT_FFT_H

#include "bout/dcomplex.hxx"
#include <bout/array.hxx>
Expand Down Expand Up @@ -132,4 +132,4 @@ inline void DST_rev(dcomplex* in, int length, BoutReal* out) {
return bout::fft::DST_rev(in, length, out);
}

#endif // __FFT_H__
#endif // BOUT_FFT_H
6 changes: 3 additions & 3 deletions include/bout/field2d.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
class Field2D;

#pragma once
#ifndef __FIELD2D_H__
#define __FIELD2D_H__
#ifndef BOUT_FIELD2D_H
#define BOUT_FIELD2D_H

class Mesh;
#include "bout/field.hxx"
Expand Down Expand Up @@ -374,4 +374,4 @@ bool operator==(const Field2D& a, const Field2D& b);

std::ostream& operator<<(std::ostream& out, const Field2D& value);

#endif /* __FIELD2D_H__ */
#endif /* BOUT_FIELD2D_H */
6 changes: 3 additions & 3 deletions include/bout/field3d.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
class Field3D;

#pragma once
#ifndef __FIELD3D_H__
#define __FIELD3D_H__
#ifndef BOUT_FIELD3D_H
#define BOUT_FIELD3D_H

class Mesh; // #include "bout/mesh.hxx"
#include "bout/bout_types.hxx"
Expand Down Expand Up @@ -656,4 +656,4 @@ bool operator==(const Field3D& a, const Field3D& b);
/// Output a string describing a Field3D to a stream
std::ostream& operator<<(std::ostream& out, const Field3D& value);

#endif /* __FIELD3D_H__ */
#endif /* BOUT_FIELD3D_H */
6 changes: 3 additions & 3 deletions include/bout/field_factory.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

class FieldFactory;

#ifndef __FIELD_FACTORY_H__
#define __FIELD_FACTORY_H__
#ifndef BOUT_FIELD_FACTORY_H
#define BOUT_FIELD_FACTORY_H

#include "bout/mesh.hxx"

Expand Down Expand Up @@ -165,4 +165,4 @@ public:
}
};

#endif // __FIELD_FACTORY_H__
#endif // BOUT_FIELD_FACTORY_H
6 changes: 3 additions & 3 deletions include/bout/fieldgroup.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __FIELDGROUP_H__
#define __FIELDGROUP_H__
#ifndef BOUT_FIELDGROUP_H
#define BOUT_FIELDGROUP_H

#include "bout/field_data.hxx"
#include <bout/field3d.hxx>
Expand Down Expand Up @@ -190,4 +190,4 @@ private:
/// Combine two FieldGroups
FieldGroup operator+(const FieldGroup& lhs, const FieldGroup& rhs);

#endif // __FIELDGROUP_H__
#endif // BOUT_FIELDGROUP_H
4 changes: 2 additions & 2 deletions include/bout/fieldperp.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

class FieldPerp;

#ifndef __FIELDPERP_H__
#define __FIELDPERP_H__
#ifndef BOUT_FIELDPERP_H
#define BOUT_FIELDPERP_H

#include "bout/field.hxx"

Expand Down
6 changes: 3 additions & 3 deletions include/bout/fv_ops.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Finite-volume discretisation methods. Flux-conservative form
*/

#ifndef __FV_OPS_H__
#define __FV_OPS_H__
#ifndef BOUT_FV_OPS_H
#define BOUT_FV_OPS_H

#include "bout/field3d.hxx"
#include "bout/globals.hxx"
Expand Down Expand Up @@ -525,4 +525,4 @@ const Field3D Div_f_v(const Field3D& n_in, const Vector3D& v, bool bndry_flux) {
*/
Field3D Div_Perp_Lap(const Field3D& a, const Field3D& f, CELL_LOC outloc = CELL_DEFAULT);
} // namespace FV
#endif // __FV_OPS_H__
#endif // BOUT_FV_OPS_H
6 changes: 3 additions & 3 deletions include/bout/globalfield.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class GlobalField;
class GlobalField2D;

#ifndef __GLOBALFIELD_H__
#define __GLOBALFIELD_H__
#ifndef BOUT_GLOBALFIELD_H
#define BOUT_GLOBALFIELD_H

#include "mesh.hxx"

Expand Down Expand Up @@ -257,4 +257,4 @@ private:
bool data_valid;
};

#endif // __GLOBALFIELD_H__
#endif // BOUT_GLOBALFIELD_H
6 changes: 3 additions & 3 deletions include/bout/globals.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
*
**************************************************************************/

#ifndef __GLOBALS_H__
#define __GLOBALS_H__
#ifndef BOUT_GLOBALS_H
#define BOUT_GLOBALS_H

#include "bout/macro_for_each.hxx"

Expand Down Expand Up @@ -97,4 +97,4 @@ SETTING(MpiWrapper* mpi, nullptr); ///< The MPI wrapper object
} // namespace globals
} // namespace bout

#endif // __GLOBALS_H__
#endif // BOUT_GLOBALS_H
Loading