diff options
Diffstat (limited to 'interface.ccl')
-rw-r--r-- | interface.ccl | 49 |
1 files changed, 43 insertions, 6 deletions
diff --git a/interface.ccl b/interface.ccl index 655fa55..f494d3a 100644 --- a/interface.ccl +++ b/interface.ccl @@ -1,10 +1,10 @@ -# Interface definition for thorn CartGrid2D +# Interface definition for thorn CartGrid3D # $Header$ implements: grid inherits: coordbase -#INCLUDE HEADER: Symmetry.h in Symmetry.h +INCLUDE HEADER: Symmetry.h in Symmetry.h uses include header: CoordBase.h # The overall size of the domain @@ -30,6 +30,41 @@ CCTK_INT FUNCTION ConvertFromPhysicalBoundary \ CCTK_REAL IN ARRAY spacing) USES FUNCTION ConvertFromPhysicalBoundary + + +CCTK_INT FUNCTION \ + MultiPatch_GetMap \ + (CCTK_POINTER_TO_CONST IN cctkGH) +USES FUNCTION MultiPatch_GetMap + +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 + +CCTK_INT FUNCTION \ + MultiPatch_ConvertFromPhysicalBoundary \ + (CCTK_INT IN map, \ + CCTK_INT IN size, \ + CCTK_REAL IN ARRAY physical_min, \ + CCTK_REAL IN 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 IN ARRAY spacing) +USES FUNCTION MultiPatch_ConvertFromPhysicalBoundary + + + # Register the symmetry boundaries CCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name) USES FUNCTION SymmetryRegister @@ -61,10 +96,12 @@ public: REAL gridspacings type=SCALAR tags='Checkpoint="no"' { - coarse_dx, coarse_dy -} "2D Cartesian grid spacings" + coarse_dx, coarse_dy, coarse_dz +} "3D Cartesian grid spacings" REAL coordinates type=GF tags='Prolongation="None" Checkpoint="no"' { - x, y, r -} "2D Cartesian grid coordinates" + x, y, z, r +# will become: +# coord_x, coord_y, coord_z +} "3D Cartesian grid coordinates" |