aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid/src/automatic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetRegrid/src/automatic.cc')
-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);
}