From 672fb5f27b17922eafd367b3da2bd5e4da1a9ebe Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 19 Feb 2008 05:30:00 +0000 Subject: CarpetRegrid: Modernise C++ cast darcs-hash:20080219053028-dae7b-7965ec31821a9df6a0ced71d685aa8615a929494.gz --- Carpet/CarpetRegrid/src/automatic.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Carpet') diff --git a/Carpet/CarpetRegrid/src/automatic.cc b/Carpet/CarpetRegrid/src/automatic.cc index eb55b9521..61e159fe4 100644 --- a/Carpet/CarpetRegrid/src/automatic.cc +++ b/Carpet/CarpetRegrid/src/automatic.cc @@ -112,7 +112,8 @@ namespace CarpetRegrid { const region_t region = hh.regions.at(ml).at(rl).at(c); assert (! region.extent.empty()); - const data& errordata = *errorgf(tl,rl,c,ml); + const data& errordata = + *dynamic_cast*> (errorgf(tl,rl,c,ml)); Automatic_Recursive (cctkGH, hh, errordata, regl, region, reffact); } -- cgit v1.2.3