aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-02-25 11:01:40 -0500
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:06 +0100
commit487280c1b638d05f4bbc2bc41c81d1fdb424cd4d (patch)
treed4ea7557f7cd42f74ce6f7a92b906e6401c69c97 /Carpet/CarpetRegrid/src
parentae44c5e6d86a65cce382e313e2a10b214e9645da (diff)
CarpetLib: Change API to obtain pointer to grid function data
Change the API to obtain a pointer to grid function data: - Use a function "typed_data_pointer" instead of overloading the () operator (because this looks nicer) - Don't use a virtual function (because this isn't needed) - Update all uses
Diffstat (limited to 'Carpet/CarpetRegrid/src')
-rw-r--r--Carpet/CarpetRegrid/src/automatic.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetRegrid/src/automatic.cc b/Carpet/CarpetRegrid/src/automatic.cc
index 7248b732a..a524edae4 100644
--- a/Carpet/CarpetRegrid/src/automatic.cc
+++ b/Carpet/CarpetRegrid/src/automatic.cc
@@ -104,7 +104,7 @@ namespace CarpetRegrid {
assert (! region.extent.empty());
const data<CCTK_REAL>& errordata =
- *dynamic_cast<const data<CCTK_REAL>*> (errorgf(tl,rl,c,ml));
+ *errorgf.typed_data_pointer(tl,rl,c,ml);
Automatic_Recursive (cctkGH, hh, errordata, regl, region, reffact);
}