aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/carpet_public.h
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/Carpet/src/carpet_public.h
parent5f566b7daa4e0d1d14536600b31207a1bc4dfc64 (diff)
CarpetLib: Remove/correct ATTRIBUTE_CONST and ATTRIBUTE_PURE declarations
Diffstat (limited to 'Carpet/Carpet/src/carpet_public.h')
-rw-r--r--Carpet/Carpet/src/carpet_public.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/carpet_public.h b/Carpet/Carpet/src/carpet_public.h
index b47d369c2..e511669e1 100644
--- a/Carpet/Carpet/src/carpet_public.h
+++ b/Carpet/Carpet/src/carpet_public.h
@@ -79,7 +79,8 @@ namespace Carpet {
};
- struct CarpetGH const * GetCarpetGH (const cGH * const cgh) CCTK_ATTRIBUTE_CONST;
+ struct CarpetGH const * GetCarpetGH (const cGH * const cgh)
+ CCTK_ATTRIBUTE_PURE;
@@ -117,10 +118,10 @@ namespace Carpet {
/* Helper functions */
- MPI_Comm CarpetMPIComm (void) CCTK_ATTRIBUTE_CONST;
- MPI_Datatype CarpetMPIDatatype (int vartype) CCTK_ATTRIBUTE_CONST;
- MPI_Datatype CarpetSimpleMPIDatatype (int vartype) CCTK_ATTRIBUTE_CONST;
- int CarpetSimpleMPIDatatypeLength (int vartype) CCTK_ATTRIBUTE_CONST;
+ MPI_Comm CarpetMPIComm (void) CCTK_ATTRIBUTE_PURE;
+ MPI_Datatype CarpetMPIDatatype (int vartype) CCTK_ATTRIBUTE_PURE;
+ MPI_Datatype CarpetSimpleMPIDatatype (int vartype) CCTK_ATTRIBUTE_PURE;
+ int CarpetSimpleMPIDatatypeLength (int vartype) CCTK_ATTRIBUTE_PURE;