From 5d364d9152c1bc46e36c904f54b55d0f71d388bb Mon Sep 17 00:00:00 2001 From: schnetter Date: Mon, 3 Jan 2005 17:00:08 +0000 Subject: Copy the parameters ntheta, nphi, nghoststheta, and nghostsphi into grid functions with the same name, but with an "sf_" prefix. This makes it easy to output these parameters, which is necessary for visualisation. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SphericalSurface/trunk@17 40f6ab95-0e4f-0410-8daa-ee8d7420be1d --- interface.ccl | 8 ++++++++ schedule.ccl | 1 + src/setup.c | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/interface.ccl b/interface.ccl index 363489f..03af59d 100644 --- a/interface.ccl +++ b/interface.ccl @@ -69,3 +69,11 @@ CCTK_REAL sf_coordinate_descriptors[nsurfaces] TYPE=scalar sf_origin_theta sf_origin_phi sf_delta_theta sf_delta_phi } "Surface coordinate descriptors" + + + +CCTK_INT sf_shape_descriptors[nsurfaces] TYPE=scalar +{ + sf_ntheta sf_nphi + sf_nghoststheta sf_nghostsphi +} "Surface shape descriptors" diff --git a/schedule.ccl b/schedule.ccl index 0e28d1d..b7feabc 100644 --- a/schedule.ccl +++ b/schedule.ccl @@ -5,6 +5,7 @@ STORAGE: sf_valid STORAGE: sf_info STORAGE: sf_radius sf_origin STORAGE: sf_coordinate_descriptors +STORAGE: sf_shape_descriptors diff --git a/src/setup.c b/src/setup.c index 982bbe9..f30d1ce 100644 --- a/src/setup.c +++ b/src/setup.c @@ -50,6 +50,14 @@ void SphericalSurfaceInfo_Setup (CCTK_ARGUMENTS) + /* copy parameters into grid functions */ + sf_ntheta[n] = ntheta[n]; + sf_nphi[n] = nphi[n]; + sf_nghoststheta[n] = nghoststheta[n]; + sf_nghostsphi[n] = nghostsphi[n]; + + + /* coordinates in the theta direction */ /* avoid_sf_origin_theta = 1 */ if (symmetric_z[n]) { -- cgit v1.2.3