/*@@ @file Simple.c @date September 4 1999 @author Gabrielle Allen @desc Standard specification of timestep @enddesc @@*/ #include #include #include #include void Time_Simple(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; /* Calculate the minimum grid spacing */ CCTK_REAL min_spacing = cctk_delta_space[0]; for (int d=1; dcctk_delta_time = dtfac*min_spacing; if (verbose) { CCTK_VInfo(CCTK_THORNSTRING, "Using a simple Courant condition to set then timestep"); CCTK_VInfo(CCTK_THORNSTRING, " ... using a dtfac of %g", (double)dtfac); CCTK_VInfo(CCTK_THORNSTRING, " ... using a minimum spacing of %g", (double)min_spacing); } CCTK_VInfo(CCTK_THORNSTRING, "Timestep set to %g (courant_static)", (double)(cctkGH->cctk_delta_time/cctkGH->cctk_timefac)); }