# Interface definition for thorn CarpetRegrid2 IMPLEMENTS: CarpetRegrid2 USES INCLUDE HEADER: bbox.hh USES INCLUDE HEADER: bboxset.hh USES INCLUDE HEADER: defs.hh USES INCLUDE HEADER: gh.hh USES INCLUDE HEADER: vect.hh USES INCLUDE HEADER: carpet.hh # The location of the boundary points CCTK_INT FUNCTION GetBoundarySpecification \ (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 GetBoundarySpecification # The overall size of the domain CCTK_INT FUNCTION GetDomainSpecification \ (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 GetDomainSpecification # Conversion between boundary types CCTK_INT FUNCTION ConvertFromPhysicalBoundary \ (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 ConvertFromPhysicalBoundary # The true prototype of the routine below: # int Carpet_Regrid (cGH const * cctkGH, # gh::mexts * bbsss, # gh::rbnds * obss, # gh::rprocs * pss, # int force); CCTK_INT FUNCTION Carpet_Regrid \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_POINTER IN bbsss, \ CCTK_POINTER IN obss, \ CCTK_POINTER IN pss, \ CCTK_INT IN force) PROVIDES FUNCTION Carpet_Regrid WITH CarpetRegrid2_Regrid LANGUAGE C # The true prototype of the routine below: # int Carpet_Regrid (cGH const * cctkGH, # vector * bbssss, # vector * obsss, # vector * psss, # int force) CCTK_INT FUNCTION Carpet_RegridMaps \ (CCTK_POINTER_TO_CONST IN cctkGH, \ CCTK_POINTER IN bbssss, \ CCTK_POINTER IN obsss, \ CCTK_POINTER IN psss, \ CCTK_INT IN force) PROVIDES FUNCTION Carpet_RegridMaps WITH CarpetRegrid2_RegridMaps LANGUAGE C CCTK_INT last_iteration "Last iteration at which there was a regridding" CCTK_INT last_map "Last map at which there was a regridding at last_iteration" PUBLIC: CCTK_INT num_levels[3] TYPE=scalar { num_levels } "Number of refinement levels" CCTK_REAL positions[3] TYPE=scalar { position_x position_y position_z } "Positions of refined regions" CCTK_REAL radii[3] TYPE=array DIM=1 SIZE=30 DISTRIB=constant { radius } "Radii of refined regions for each level"