aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorreisswig <reisswig@40f6ab95-0e4f-0410-8daa-ee8d7420be1d>2007-11-02 11:27:19 +0000
committerreisswig <reisswig@40f6ab95-0e4f-0410-8daa-ee8d7420be1d>2007-11-02 11:27:19 +0000
commit2f2deabf0520a66da257ba83fb599ddfb872ef5e (patch)
tree5f338c2b3ea8443601ea1265c30935aaadc5ffc1 /src
parent921333dfb7a1a886159e648a75aef070cbe8497c (diff)
- introduced auto-res feature
- introduced two new attributes that store with which reflevel a surface will intersect or is fully contained git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SphericalSurface/trunk@28 40f6ab95-0e4f-0410-8daa-ee8d7420be1d
Diffstat (limited to 'src')
-rw-r--r--src/make.code.defn2
-rw-r--r--src/radius.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index e1cb6e1..e11e8b2 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -2,7 +2,7 @@
# $Header$
# Source files in this directory
-SRCS = check.c radius.c setup.c
+SRCS = check.c radius.c setup.cc
# Subdirectories containing source files
SUBDIRS =
diff --git a/src/radius.c b/src/radius.c
index 0958b4c..9fc1b50 100644
--- a/src/radius.c
+++ b/src/radius.c
@@ -68,8 +68,8 @@ void SphericalSurface_Set (CCTK_ARGUMENTS)
sf_max_y[n] = origin_y[n] + radius[n];
sf_max_z[n] = origin_z[n] + radius[n];
- for (j=0; j<nphi[n]; ++j) {
- for (i=0; i<ntheta[n]; ++i) {
+ for (j=0; j<sf_nphi[n]; ++j) {
+ for (i=0; i<sf_ntheta[n]; ++i) {
int const ind = i + maxntheta * (j + maxnphi * n);
sf_radius[ind] = radius[n];
}
@@ -132,8 +132,8 @@ void SphericalSurface_Set (CCTK_ARGUMENTS)
sf_max_y[n] = origin_y[n] + radius_y[n];
sf_max_z[n] = origin_z[n] + radius_z[n];
- for (j=0; j<nphi[n]; ++j) {
- for (i=0; i<ntheta[n]; ++i) {
+ for (j=0; j<sf_nphi[n]; ++j) {
+ for (i=0; i<sf_ntheta[n]; ++i) {
int const ind = i + maxntheta * (j + maxnphi * n);
CCTK_REAL const theta = sf_origin_theta[n] + i * sf_delta_theta[n];
CCTK_REAL const phi = sf_origin_phi[n] + j * sf_delta_phi[n];