From 515eef83a29c3700a205068a753f239f75f8e91b Mon Sep 17 00:00:00 2001 From: goodale Date: Tue, 30 Nov 1999 23:43:55 +0000 Subject: Added lots of missing function prototypes. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllBase/trunk@25 57bc7290-fb3d-4efd-a9b1-28e84cce6043 --- interface.ccl | 3 +++ src/EllBase.h | 26 ++++++++++++++++++++++++-- src/Startup.c | 2 ++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/interface.ccl b/interface.ccl index 6ebc6a1..828fc4c 100644 --- a/interface.ccl +++ b/interface.ccl @@ -1,3 +1,6 @@ # Interface definition for thorn EllBase # $Header$ implements: ellbase + +INCLUDES: EllBase.h in EllBase.h +INCLUDES: Ell_DBstructure.h in Ell_DBstructure.h diff --git a/src/EllBase.h b/src/EllBase.h index e01198c..985b7ee 100644 --- a/src/EllBase.h +++ b/src/EllBase.h @@ -1,5 +1,14 @@ -#ifndef _LINEARELLIPTIC_H_ -#define _LINEARELLIPTIC_H_ + /*@@ + @header EllBase.h + @date + @author Gerd Lanferman + @desc + Basic Elliptic solver functions. + @enddesc + @version $Header$ + @@*/ +#ifndef _ELLBASE_H_ +#define _ELLBASE_H_ #ifdef CCODE @@ -15,6 +24,19 @@ int MIndex, \ int NIndex \ +#ifdef __cplusplus +extern "C" +{ +#endif + +void Ell_RegisterSolver(void (*function), + const char *sname, + const char *eqname); + +#ifdef __cplusplus +} #endif #endif + +#endif /* _ELLBASE_H_ */ diff --git a/src/Startup.c b/src/Startup.c index 2b3d7d2..2a74fab 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -5,6 +5,8 @@ #include "cctk.h" #include "cctk_parameters.h" +#include "Ell_DBstructure.h" + /* At Startup, EllBase registers the elliptic equation classes for which it provides solvers. Other routines, which may come up with new classes, can registers the classes in their own thorns. */ -- cgit v1.2.3