Skip to content

Commit

Permalink
Add namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenrbrandt committed Jul 25, 2023
1 parent 6adcf64 commit 28c1caf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Derivs/src/derivs_spacetimex.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CARPETX_DERIVS_DERIVS_HXX
#define CARPETX_DERIVS_DERIVS_HXX
#ifndef CARPETX_DERIVS_SPACETIMEX_DERIVS_HXX
#define CARPETX_DERIVS_SPACETIMEX_DERIVS_HXX

#include <loop_device.hxx>
#include <mat.hxx>
Expand All @@ -13,6 +13,8 @@
#include <type_traits>
// Unified derivative header

namespace derivs_spacetimex {

// TODO: Make this a runtime parameter
constexpr int deriv_order = 4;

Expand Down Expand Up @@ -508,5 +510,7 @@ void CCTK_ATTRIBUTE_NOINLINE calc_copy(const cGH *restrict const cctkGH,
for (int b = a; b < 3; ++b)
calc_copy(cctkGH, gf0_(a, b), gf_(a, b), layout);
}

}

#endif // #ifndef CARPETX_DERIVS_DERIVS_HXX

0 comments on commit 28c1caf

Please sign in to comment.