diff options
author | eschnett <eschnett@40f6ab95-0e4f-0410-8daa-ee8d7420be1d> | 2012-05-11 16:34:56 +0000 |
---|---|---|
committer | eschnett <eschnett@40f6ab95-0e4f-0410-8daa-ee8d7420be1d> | 2012-05-11 16:34:56 +0000 |
commit | 85cf5f11f21fe76ec20d5e3ed6039ecfbf724204 (patch) | |
tree | 55470b5c37a6bf66c593474499a20d6e7dc13be0 | |
parent | 0a07f736e27a8b78f897bc8a9619326b1194cd7a (diff) |
Use cast to avoid warning.
Comment out unused variable.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/SphericalSurface/trunk@48 40f6ab95-0e4f-0410-8daa-ee8d7420be1d
-rw-r--r-- | src/setup.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/setup.cc b/src/setup.cc index 08b3dd6..db6a92f 100644 --- a/src/setup.cc +++ b/src/setup.cc @@ -53,7 +53,7 @@ extern "C" CCTK_INT SphericalSurface_IdFromName (CCTK_INT fallbackid, CCTK_POINT if (retval == -1) { CCTK_VWarn(CCTK_WARN_ALERT, __LINE__, __FILE__, CCTK_THORNSTRING, "Did not find spherical surface with name '%s'.", - sfname); + static_cast<CCTK_STRING>(sfname)); } } @@ -363,10 +363,10 @@ extern "C" void SphericalSurface_SetupRes (CCTK_ARGUMENTS) // first test, if we have an overlap with a certain reflevel // we do this by calculating a sphere based on the corners of the Cartesian local patch // on this processor. - unsigned long l[2]; + //unsigned long l[2]; - l[0] = CCTK_GFINDEX3D(cctkGH, 0, 0, 0); - l[1] = CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, cctk_lsh[1]-1, cctk_lsh[2]-1); + //l[0] = CCTK_GFINDEX3D(cctkGH, 0, 0, 0); + //l[1] = CCTK_GFINDEX3D(cctkGH, cctk_lsh[0]-1, cctk_lsh[1]-1, cctk_lsh[2]-1); bool is_overlapping = false; CCTK_REAL cart_radius = 0; // radius of Cart. grid |