aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp2
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2012-02-24 23:02:22 -0500
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:05 +0100
commit0f0235b7a2a02a93cfe757d977ed56c2469dc673 (patch)
treec9ebc615cbee510ddefa3d575e36ba4a01bbc40c /Carpet/CarpetInterp2
parent5f566b7daa4e0d1d14536600b31207a1bc4dfc64 (diff)
CarpetLib: Remove/correct ATTRIBUTE_CONST and ATTRIBUTE_PURE declarations
Diffstat (limited to 'Carpet/CarpetInterp2')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.hh b/Carpet/CarpetInterp2/src/fasterp.hh
index 138084d1d..e84ebfa9c 100644
--- a/Carpet/CarpetInterp2/src/fasterp.hh
+++ b/Carpet/CarpetInterp2/src/fasterp.hh
@@ -47,7 +47,7 @@ namespace CarpetInterp2 {
static int components;
static void determine_mrc_info ();
- static int get_max_ind () CCTK_ATTRIBUTE_PURE
+ static int get_max_ind () CCTK_MEMBER_ATTRIBUTE_PURE
{
return maps * reflevels * components;
}
@@ -72,12 +72,12 @@ namespace CarpetInterp2 {
mrc_t (int ind);
// Convert a mrc into an integer index
- int get_ind () const CCTK_ATTRIBUTE_PURE
+ int get_ind () const CCTK_MEMBER_ATTRIBUTE_PURE
{
return c + components * (rl + reflevels * m);
}
- bool operator== (mrc_t const & a) const CCTK_ATTRIBUTE_PURE
+ bool operator== (mrc_t const & a) const CCTK_MEMBER_ATTRIBUTE_PURE
{
return m == a.m and rl == a.rl and c == a.c;
}
@@ -126,7 +126,7 @@ namespace CarpetInterp2 {
coords[d].resize(n);
}
}
- size_t size () const CCTK_ATTRIBUTE_PURE { return coords[0].size(); }
+ size_t size () const CCTK_MEMBER_ATTRIBUTE_PURE { return coords[0].size(); }
};
// A local location, given by map and local coordinates
@@ -140,7 +140,7 @@ namespace CarpetInterp2 {
coords[d].resize(n);
}
}
- size_t size () const CCTK_ATTRIBUTE_PURE { return maps.size(); }
+ size_t size () const CCTK_MEMBER_ATTRIBUTE_PURE { return maps.size(); }
};
// An integer location, given by map, refinement level, and
@@ -156,7 +156,7 @@ namespace CarpetInterp2 {
int ind3d; // closest grid point
rvect offset; // in terms of grid points
- static MPI_Datatype mpi_datatype () CCTK_ATTRIBUTE_CONST;
+ static MPI_Datatype mpi_datatype () CCTK_MEMBER_ATTRIBUTE_PURE;
void output (ostream& os) const;
};
@@ -313,7 +313,7 @@ namespace CarpetInterp2 {
size_t
get_npoints ()
- const CCTK_ATTRIBUTE_PURE
+ const CCTK_MEMBER_ATTRIBUTE_PURE
{
return recv_descr.npoints;
}