From eb26f65210f8e513a6441591e117575f14f23d51 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 21 Jun 2004 09:12:24 +0000 Subject: Renamed local variable 'index' to 'vindex' to get rid of gcc compiler warnings about naming variables after global functions. git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/WaveToyCXX/trunk@78 50555cc7-fb31-491a-85db-9a2874240742 --- src/WaveToy.cc | 90 +++++++++++++++++++++++----------------------------------- 1 file changed, 36 insertions(+), 54 deletions(-) diff --git a/src/WaveToy.cc b/src/WaveToy.cc index 4dd002e..bf8f756 100644 --- a/src/WaveToy.cc +++ b/src/WaveToy.cc @@ -1,14 +1,14 @@ /*@@ - @file WaveToy.cc - @date - @author Tom Goodale - @desc - Evolution routines for the wave equation solver - @enddesc - @version $Header$ + @file WaveToy.cc + @date + @author Tom Goodale + @desc + Evolution routines for the wave equation solver + @enddesc + @version $Id$ @@*/ - -#include "cctk.h" + +#include "cctk.h" #include "cctk_Parameters.h" #include "cctk_Arguments.h" @@ -20,31 +20,24 @@ CCTK_FILEVERSION (CactusWave_WaveToyCXX_WaveToy_cc); /*@@ @routine WaveToyC_Evolution - @date + @date @author Tom Goodale - @desc + @desc Evolution for the wave equation - @enddesc - @calls CCTK_SyncGroup, WaveToyC_Boundaries - @calledby - @history - - @endhistory - + @enddesc @@*/ extern "C" void WaveToyCXX_Evolution(CCTK_ARGUMENTS) { - DECLARE_CCTK_ARGUMENTS - // Set up shorthands + // Set up shorthands CCTK_REAL dx = CCTK_DELTA_SPACE(0); CCTK_REAL dy = CCTK_DELTA_SPACE(1); CCTK_REAL dz = CCTK_DELTA_SPACE(2); CCTK_REAL dt = CCTK_DELTA_TIME; - + CCTK_REAL dx2 = dx*dx; CCTK_REAL dy2 = dy*dy; CCTK_REAL dz2 = dz*dz; @@ -62,11 +55,11 @@ extern "C" void WaveToyCXX_Evolution(CCTK_ARGUMENTS) int iend = cctk_lsh[0]-1; int jend = cctk_lsh[1]-1; - int kend = cctk_lsh[2]-1; + int kend = cctk_lsh[2]-1; // - // Do the evolution - // + // Do the evolution + // for (int k=kstart; k