aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Requirements.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-09-10 22:21:17 -0400
committerErik Schnetter <schnetter@gmail.com>2012-09-10 22:21:17 -0400
commite53fc5afa1b4fcec640698c00da602c87cf5dce8 (patch)
treef380f439cc28ab8079a432a998ca38cd46b12e91 /Carpet/Carpet/src/Requirements.cc
parent437adfbc0a6ddfbe4b93615dc2a52b5331971fed (diff)
Carpet: Requirements: Correct function types
Correct types of Carpet_Requirements_CheckReads and Carpet_Requirements_NotifyWrites
Diffstat (limited to 'Carpet/Carpet/src/Requirements.cc')
-rw-r--r--Carpet/Carpet/src/Requirements.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/Carpet/Carpet/src/Requirements.cc b/Carpet/Carpet/src/Requirements.cc
index 4cf769e57..d0299f38f 100644
--- a/Carpet/Carpet/src/Requirements.cc
+++ b/Carpet/Carpet/src/Requirements.cc
@@ -960,10 +960,12 @@ namespace Carpet {
}
extern "C"
- void Carpet_Requirements_CheckReads(const cGH *cctkGH, CCTK_INT nvars,
- CCTK_INT const * varidx,
- char const * clause)
+ void Carpet_Requirements_CheckReads(CCTK_POINTER_TO_CONST const cctkGH_,
+ CCTK_INT const nvars,
+ CCTK_INT const* const varidx,
+ char const* const clause)
{
+ cGH const* const cctkGH = static_cast<cGH const*>(cctkGH_);
DECLARE_CCTK_PARAMETERS;
if (check_requirements) {
// TODO: come up with a scheme to avoid constructing and destroying clauses
@@ -1073,10 +1075,12 @@ namespace Carpet {
}
extern "C"
- void Carpet_Requirements_NotifyWrites(const cGH *cctkGH, CCTK_INT nvars,
- CCTK_INT const * varidx,
- char const * clause)
+ void Carpet_Requirements_NotifyWrites(CCTK_POINTER_TO_CONST const cctkGH_,
+ CCTK_INT const nvars,
+ CCTK_INT const* const varidx,
+ char const* const clause)
{
+ cGH const* const cctkGH = static_cast<cGH const*>(cctkGH_);
DECLARE_CCTK_PARAMETERS;
if (check_requirements) {
// TODO: come up with a scheme to avoid constructing and destroying clauses