diff options
author | allen <allen@6a3ddf76-46e1-4315-99d9-bc56cac1ef84> | 1999-10-21 13:20:50 +0000 |
---|---|---|
committer | allen <allen@6a3ddf76-46e1-4315-99d9-bc56cac1ef84> | 1999-10-21 13:20:50 +0000 |
commit | 666622be96fd2f0b375d6226c5fbd8b5e8ccc32b (patch) | |
tree | d833a86925103e90256cd62a476c85457984293c /src/Misner_points.c | |
parent | b5472412c20b85c5ce76527beb45a3df3ab8ca65 (diff) |
Tom's C version of IDAnalyticBH is now the default. Passes testsuites
for Schwarzschild and 2 misner holes, need to test multiple misner
and BL still
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinInitialData/IDAnalyticBH/trunk@40 6a3ddf76-46e1-4315-99d9-bc56cac1ef84
Diffstat (limited to 'src/Misner_points.c')
-rw-r--r-- | src/Misner_points.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/Misner_points.c b/src/Misner_points.c index 2eb5541..5df8fb7 100644 --- a/src/Misner_points.c +++ b/src/Misner_points.c @@ -38,10 +38,10 @@ struct bhole { /* The seed black holes. */ struct bhole bholes[MAXBHOLES]; -CCTK_REAL csch(CCTK_REAL mu) { +static CCTK_REAL csch(CCTK_REAL mu) { return 1.0/sinh(mu); } -CCTK_REAL coth(CCTK_REAL mu) { +static CCTK_REAL coth(CCTK_REAL mu) { return cosh(mu)/sinh(mu); } @@ -59,7 +59,7 @@ CCTK_REAL coth(CCTK_REAL mu) { @@*/ -void iso(struct bhole *a1, struct bhole *a2, struct bhole *a3) +static void iso(struct bhole *a1, struct bhole *a2, struct bhole *a3) { CCTK_REAL rad,radtwo; radtwo=( @@ -87,7 +87,7 @@ void iso(struct bhole *a1, struct bhole *a2, struct bhole *a3) @@*/ -void fill_iso(struct bhole *b, int n) +static void fill_iso(struct bhole *b, int n) { int i,j; if(n==0) @@ -122,29 +122,29 @@ void fill_iso(struct bhole *b, int n) @@*/ -void FMODIFIER FORTRAN_NAME(Misner_init)(int *n, CCTK_REAL *mu, int *terms) +void Misner_init(int n, CCTK_REAL mu, int terms) { int i; CCTK_REAL pi,ang; - assert((nbholes=*n) < MAXBHOLES); + assert((nbholes=n) < MAXBHOLES); pi = 4.0*atan(1.); - ang = 2.*pi/(*n); + ang = 2.*pi/(n); - for(i=0;i<*n;i++) + for(i=0;i<n;i++) { - bholes[i].x = coth(*mu)*cos(ang*i); - bholes[i].y = coth(*mu)*sin(ang*i); - bholes[i].mass = csch(*mu); + bholes[i].x = coth(mu)*cos(ang*i); + bholes[i].y = coth(mu)*sin(ang*i); + bholes[i].mass = csch(mu); bholes[i].i = i; bholes[i].isos = 0; } - for(i=0;i<*n;i++) - fill_iso(&bholes[i],*terms); + for(i=0;i<n;i++) + fill_iso(&bholes[i],terms); } @@ -163,7 +163,7 @@ void FMODIFIER FORTRAN_NAME(Misner_init)(int *n, CCTK_REAL *mu, int *terms) @@*/ -CCTK_REAL eval_bh_psi(struct bhole *b, CCTK_REAL x, CCTK_REAL y, CCTK_REAL z) +static CCTK_REAL eval_bh_psi(struct bhole *b, CCTK_REAL x, CCTK_REAL y, CCTK_REAL z) { int i; CCTK_REAL res; @@ -198,10 +198,10 @@ CCTK_REAL eval_bh_psi(struct bhole *b, CCTK_REAL x, CCTK_REAL y, CCTK_REAL z) @@*/ -void FMODIFIER FORTRAN_NAME(MisnerEvalPsi)(CCTK_REAL *x, CCTK_REAL *y, CCTK_REAL *z, CCTK_REAL *res) +void MisnerEvalPsi(CCTK_REAL x, CCTK_REAL y, CCTK_REAL z, CCTK_REAL *res) { int i; *res = 1; for(i=0;i<nbholes;i++) - *res += eval_bh_psi(&bholes[i],*x,*y,*z); + *res += eval_bh_psi(&bholes[i],x,y,z); } |