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 --- src/setup.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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