aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
authorhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-04-23 14:59:00 +0000
committerhawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b>2003-04-23 14:59:00 +0000
commitfd1b7d175f18cb5f1d168c8a9e95508b41ae39e9 (patch)
tree438f83a13ed6c0dcd80b495222d57b5ee59c898c /src/Startup.c
parent1100eb9f3017973b6cfa5b6bff3306773ff3e532 (diff)
The Method of Lines thorn (version 2 - see below).
MoL provides generic integration methods for multiple thorns simultaneously. By providing a layer between the driver and evolution thorns, this should mean that some technical issues to do with mesh refinement can be ignored. It also allows you to choose different evolution methods (in time, at least). But the primary purpose is to unambiguously evolve models in different thorns at the same time. This is version 2 - the one that will work with mesh refinement. It's a straight copy of HawkeCVS/Public/CactusMoL2/MoL2 and I haven't checked that it will work "as is" with the new name (one of the reasons it goes into Alpha). At the moment the only evolution method guaranteed to work with mesh refinement is ICN, although RK2 should. The generic RK methods will do something that will be subtly wrong... Note that the "old" way of registering variables (through the functions declared in header files) is still there. As soon as function aliasing settles down, this will be removed. Also to be done: Better documentation Tidy up the code (especially the debugging statements) Optimize Add various useful time evolution methods. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@2 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c89
1 files changed, 89 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c
new file mode 100644
index 0000000..096d6b0
--- /dev/null
+++ b/src/Startup.c
@@ -0,0 +1,89 @@
+ /*@@
+ @file Startup.c
+ @date Wed May 22 02:09:19 2002
+ @author
+ @desc
+ Register the startup banner.
+ The external variables are also declared here. These are
+ the arrays containing the variable indexes and right hand sides,
+ and the number of each type of variable currently in use (the
+ parameters only give the maximum possible for each type).
+ @enddesc
+ @version $Header$
+ @@*/
+
+#include "cctk.h"
+#include "ExternalVariables.h"
+
+static const char *rcsid = "$Header$";
+
+CCTK_FILEVERSION(CactusMoL2_MoL2_Startup_c);
+
+/********************************************************************
+ ******************** External Variables **********************
+ ********************************************************************/
+
+CCTK_INT *EvolvedVariableIndex = NULL;
+CCTK_INT *RHSVariableIndex = NULL;
+CCTK_INT *ConstrainedVariableIndex = NULL;
+CCTK_INT *SandRVariableIndex = NULL;
+
+CCTK_INT MoLNumEvolvedVariables = 0;
+CCTK_INT MoLNumConstrainedVariables = 0;
+CCTK_INT MoLNumSandRVariables = 0;
+
+/********************************************************************
+ ********************* Local Data Types ***********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ***************** Scheduled Routine Prototypes *********************
+ ********************************************************************/
+
+int MoL_Startup(void);
+
+/********************************************************************
+ ********************* Other Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Data *****************************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* External Routines **********************
+ ********************************************************************/
+
+ /*@@
+ @routine MoL_Startup
+ @date Wed May 22 02:17:17 2002
+ @author Ian Hawke
+ @desc
+ Register the startup banner with the flesh.
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+
+int MoL_Startup(void)
+{
+
+ const char *banner = "MoL: Generalized time integration.";
+
+ CCTK_RegisterBanner(banner);
+
+ return 0;
+
+}
+
+/********************************************************************
+ ********************* Local Routines *************************
+ ********************************************************************/