From 63962de4f7a67068229d280924d74a2c8e58a1a4 Mon Sep 17 00:00:00 2001 From: knarf Date: Wed, 15 Jun 2005 12:05:57 +0000 Subject: remote the factor epsdisp from the slopes. This means that you have to change the slope values in your old parameter files by dividing by the slope value used to get the old behaviour. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Dissipation/trunk@11 850bcc8b-0e4f-0410-8c26-8d28fbf1eda9 --- param.ccl | 6 +++--- src/setup_epsdis.c | 14 +++++++------- test/test_ah.par | 2 +- test/test_ob.par | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/param.ccl b/param.ccl index 3b4725f..30578a0 100644 --- a/param.ccl +++ b/param.ccl @@ -1,4 +1,4 @@ -# Parameter definitions for thorn Dissipation +#: Parameter definitions for thorn Dissipation # $Header$ BOOLEAN verbose "produce log output" STEERABLE=always @@ -34,7 +34,7 @@ INT update_ah_every "how often to update the AH information for dissipation" STE 0:* :: "positive iteration number" } 1 -REAL ah_slope "Slope (epsdis / distance) inside AH" STEERABLE=always +REAL ah_slope "Slope inside AH" STEERABLE=always { *:* :: "0 for no dissipation. Unstable when total epsdis<0 or total epsdis>1/3" } 0.2 @@ -64,7 +64,7 @@ INT outer_bound_npoints "number of points in which dissipation should be increas 0:* :: "positive number" } 3 -REAL ob_slope "slope (epsdis / distance) at outer boundary" STEERABLE=always +REAL ob_slope "slope at outer boundary" STEERABLE=always { 0:* :: "increase dissipation" } 5 diff --git a/src/setup_epsdis.c b/src/setup_epsdis.c index 9a3b2cf..5acb649 100644 --- a/src/setup_epsdis.c +++ b/src/setup_epsdis.c @@ -66,7 +66,7 @@ setup_epsdis (CCTK_ARGUMENTS) for (i=0;ini-outer_bound_npoints;i--) { index = CCTK_GFINDEX3D(cctkGH,i,j,k); indexP= CCTK_GFINDEX3D(cctkGH,ni-outer_bound_npoints,j,k); - epsdisA[index]=epsdis+epsdis*ob_slope*abs(x[index]-x[indexP]); + epsdisA[index]=epsdis+ob_slope*abs(x[index]-x[indexP]); } } } @@ -89,7 +89,7 @@ setup_epsdis (CCTK_ARGUMENTS) for (i=0;i