aboutsummaryrefslogtreecommitdiff
path: root/src/Registration.c
diff options
context:
space:
mode:
authorschnetter <schnetter@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2007-09-05 17:33:48 +0000
committerschnetter <schnetter@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2007-09-05 17:33:48 +0000
commit0c6ef1e1ebc7717e36b97f46f0afc09be2958a6d (patch)
treeb9888fd405f6014131cc43b3bb49357f21b0f3ca /src/Registration.c
parent5fab1cec10163e6c0b9320bf8dcdb62d5a6a4679 (diff)
Add new aliased function MoLNumIntegratorSubsteps, which returns the
number of stusteps that the time integrator performs for one time step. This information can e.g. used to automatically calculate the necessary number of buffer zones for mesh refinement. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@124 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/Registration.c')
-rw-r--r--src/Registration.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Registration.c b/src/Registration.c
index 8dd4a16..c63fbb2 100644
--- a/src/Registration.c
+++ b/src/Registration.c
@@ -110,6 +110,8 @@ CCTK_INT MoL_RegisterConstrainedComplexArrayGroup(CCTK_INT ConstrainedGroupIndex
CCTK_INT MoL_RegisterSaveAndRestoreComplexArrayGroup(CCTK_INT SandRGroupIndex);
CCTK_INT MoL_QueryEvolvedRHS(CCTK_INT EvolvedIndex);
+
+CCTK_INT MoL_NumIntegratorSubsteps(void);
/********************************************************************
********************* Local Data *****************************
@@ -2771,6 +2773,32 @@ CCTK_INT MoL_QueryEvolvedRHS(CCTK_INT EvolvedIndex)
}
+
+
+ /*@@
+ @routine MoL_NumIntegratorSubsteps
+ @date 2007-05-23
+ @author Erik Schnetter
+ @desc
+ Return how many time integrator substeps there are.
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+
+CCTK_INT MoL_NumIntegratorSubsteps (void)
+{
+ DECLARE_CCTK_PARAMETERS;
+
+ return MoL_Intermediate_Steps;
+}
+
+
+
/*
Old function names. Just calls the new version.
Included for compatibility