diff options
author | schnetter <> | 2004-05-21 16:16:00 +0000 |
---|---|---|
committer | schnetter <> | 2004-05-21 16:16:00 +0000 |
commit | 7454a1ad27aed2c00226200b0d328d42d5785963 (patch) | |
tree | 5b003fc63aa70f21a8db66f5889f05ad050f0535 /Carpet/Carpet/src/carpet_public.h | |
parent | 27a0b6427b09483bbb2dd8e7c11f8a7b131b098e (diff) |
Make Carpet ready for multiple patches.
Make Carpet ready for multiple patches.
Make the patch index available in a GH extension.
darcs-hash:20040521161623-07bb3-4f3148f677aff087d62828ed4b480fe8b412bc76.gz
Diffstat (limited to 'Carpet/Carpet/src/carpet_public.h')
-rw-r--r-- | Carpet/Carpet/src/carpet_public.h | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/carpet_public.h b/Carpet/Carpet/src/carpet_public.h index 328103e36..15555f039 100644 --- a/Carpet/Carpet/src/carpet_public.h +++ b/Carpet/Carpet/src/carpet_public.h @@ -1,4 +1,4 @@ -/* $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.h,v 1.13 2004/04/04 19:24:13 schnetter Exp $ */ +/* $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/carpet_public.h,v 1.14 2004/05/21 18:16:23 schnetter Exp $ */ #ifndef CARPET_PUBLIC_H #define CARPET_PUBLIC_H @@ -19,6 +19,62 @@ 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); @@ -45,6 +101,8 @@ namespace Carpet { MPI_Comm CarpetMPIComm (void); MPI_Datatype CarpetMPIDatatype (int vartype); + + #ifdef __cplusplus } /* extern "C" */ } /* namespace Carpet */ |