diff options
Diffstat (limited to 'Carpet/Carpet/src/carpet_public.h')
-rw-r--r-- | Carpet/Carpet/src/carpet_public.h | 112 |
1 files changed, 5 insertions, 107 deletions
diff --git a/Carpet/Carpet/src/carpet_public.h b/Carpet/Carpet/src/carpet_public.h index 87c9130bc..168ef725b 100644 --- a/Carpet/Carpet/src/carpet_public.h +++ b/Carpet/Carpet/src/carpet_public.h @@ -1,113 +1,11 @@ -/* $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.h,v 1.15 2004/06/16 16:36:02 schnetter Exp $ */ - -#ifndef CARPET_PUBLIC_H -#define CARPET_PUBLIC_H +/* $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.h,v 1.1 2001/07/09 09:00:13 schnetter Exp $ */ #include <mpi.h> #include "cctk.h" +/* Scheduled functions */ +int CarpetStartup (void); - -/* Tell thorns that the Carpet routines exist */ -#define HAVE_CARPET - - - -#ifdef __cplusplus -namespace Carpet { - extern "C" { -#endif - - /* Carpet's GH extension */ - struct CarpetGH { - -#if 0 - /* Maximum number of refinement levels */ - int maxreflevels; - - /* Refinement levels */ - int reflevels; - - /* Refinement factor */ - int reffact; - - /* Refinement factor on finest possible grid */ - int maxreflevelfact; - - /* Base multigrid level */ - int basemglevel; - - /* Multigrid levels */ - int mglevels; - - /* Multigrid factor */ - int mgfact; - - /* Multigrid factor on coarsest grid */ - int maxmglevelfact; -#endif - - /* Maps */ - int maps; - - - -#if 0 - /* Current position on the grid hierarchy */ - int reflevel; - int mglevel; -#endif - int map; -#if 0 - int component; - - /* Current refinement factor */ - int reflevelfact; - - /* Current multigrid factor */ - int mglevelfact; -#endif - - }; - - struct CarpetGH const * GetCarpetGH (const cGH * const cgh); - - - - /* Prolongation management */ - CCTK_INT CarpetEnableProlongating (const CCTK_INT flag); - - - - /* Call a schedule group */ - int CallScheduleGroup (cGH * const cgh, const char * const group); - - /* Call a local function */ - int CallLocalFunction (cGH * const cgh, - void (* const function) (cGH * const cgh)); - int CallSinglemapFunction (cGH * const cgh, - void (* const function) (cGH * const cgh)); - int CallLevelFunction (cGH * const cgh, - void (* const function) (cGH * const cgh)); - int CallGlobalFunction (cGH * const cgh, - void (* const function) (cGH * const cgh)); - int CallMetaFunction (cGH * const cgh, - void (* const function) (cGH * const cgh)); - - - - /* Helper functions */ - MPI_Comm CarpetMPIComm (void); - MPI_Datatype CarpetMPIDatatype (int vartype); - MPI_Datatype CarpetSimpleMPIDatatype (int vartype); - int CarpetSimpleMPIDatatypeLength (int vartype); - - - -#ifdef __cplusplus - } /* extern "C" */ -} /* namespace Carpet */ -#endif - -#endif /* !defined(CARPET_PUBLIC_H) */ +/* Helper functions */ +MPI_Comm CarpetMPICommunicator (void); |