From 6b9c2c1e8de8d05a2c386393f0f5cac20157f590 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 15 Apr 2012 09:42:18 +0200 Subject: Use exterior domain extent, not physical. --- src/trumpet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/trumpet.c b/src/trumpet.c index 0933c04..e21aa9a 100644 --- a/src/trumpet.c +++ b/src/trumpet.c @@ -48,8 +48,8 @@ static CCTK_REAL get_max_r(CCTK_INT dim) GetDomainSpecification(dim, phys_min, phys_max, int_min, int_max, ext_min, ext_max, step); for (int i = 0; i < dim; i++) { - max = MAX(max, abs(phys_min[i])); - max = MAX(max, abs(phys_max[i])); + max = MAX(max, abs(ext_min[i])); + max = MAX(max, abs(ext_max[i])); } return sqrt(dim)*2*max; } -- cgit v1.2.3