diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-05 10:36:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-05 10:36:00 +0000 |
commit | 0eb7f388fa611fce061c07c4e78a3de8ac5e3992 (patch) | |
tree | 26b390350602be8cfb442195c745e9588f2bee10 /Carpet/Carpet/interface.ccl | |
parent | e4d40fcc5755c9ad5bcfd995228efdd55b0f4d62 (diff) |
Carpet: Add support to get the domain specification from the multipatch thorn
Introduce aliased functions MultiPatch_GetBoundarySpecification and
Multipatch_GetDomainSpecification which can be provided by a
multipatch thorn. This will make it possible to have different grid
setups on different patches.
darcs-hash:20050705103636-891bb-4f03733ed93abf1d70efa1c64e13dc4066a91cf1.gz
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r-- | Carpet/Carpet/interface.ccl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl index d6e327736..76d8f9b19 100644 --- a/Carpet/Carpet/interface.ccl +++ b/Carpet/Carpet/interface.ccl @@ -75,6 +75,36 @@ USES FUNCTION ConvertFromExteriorBoundary +# The setup of the system +CCTK_INT FUNCTION MultiPatch_GetSystemSpecification \ + (CCTK_INT OUT maps) +USES FUNCTION MultiPatch_GetSystemSpecification + +# The location of the boundary points +CCTK_INT FUNCTION MultiPatch_GetBoundarySpecification \ + (CCTK_INT IN map, \ + CCTK_INT IN size, \ + CCTK_INT OUT ARRAY nboundaryzones, \ + CCTK_INT OUT ARRAY is_internal, \ + CCTK_INT OUT ARRAY is_staggered, \ + CCTK_INT OUT ARRAY shiftout) +USES FUNCTION MultiPatch_GetBoundarySpecification + +# The overall size of the domain +CCTK_INT FUNCTION MultiPatch_GetDomainSpecification \ + (CCTK_INT IN map, \ + CCTK_INT IN size, \ + CCTK_REAL OUT ARRAY physical_min, \ + CCTK_REAL OUT ARRAY physical_max, \ + CCTK_REAL OUT ARRAY interior_min, \ + CCTK_REAL OUT ARRAY interior_max, \ + CCTK_REAL OUT ARRAY exterior_min, \ + CCTK_REAL OUT ARRAY exterior_max, \ + CCTK_REAL OUT ARRAY spacing) +USES FUNCTION MultiPatch_GetDomainSpecification + + + # The true prototype of the routine below: # int Carpet_Regrid (const cGH * cctkGH, # gh::mexts * bbsss, |