diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-06-14 00:49:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-06-14 00:49:00 +0000 |
commit | 43b4bed9475298003f93b7a547cbe0bfe4c6d223 (patch) | |
tree | 36d3875c6966b143c0a224a6fcfe4b1849c31167 /Carpet/CarpetInterp/interface.ccl | |
parent | 0dad8e22a7201792c13c5b3283d6f9fc773dc619 (diff) |
CarpetInterp: Use GetCoordRange to obtain component coordinates
Use the aliased function GetCoordRange to calculate the local
coordinate system of a component. The Cactus function CCTK_CoordRange
does not work correctly when different patches have different extents
or grid spacings.
darcs-hash:20070614004957-dae7b-71d7c72ce13eb713154639c299afe5ab4d590369.gz
Diffstat (limited to 'Carpet/CarpetInterp/interface.ccl')
-rw-r--r-- | Carpet/CarpetInterp/interface.ccl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Carpet/CarpetInterp/interface.ccl b/Carpet/CarpetInterp/interface.ccl index cc43d40a6..5b6ca8316 100644 --- a/Carpet/CarpetInterp/interface.ccl +++ b/Carpet/CarpetInterp/interface.ccl @@ -49,3 +49,17 @@ CCTK_INT FUNCTION \ PROVIDES FUNCTION DriverInterpolate \ WITH Carpet_DriverInterpolate \ LANGUAGE C + + + +# Access coordinate information (on the coarse level) +CCTK_INT FUNCTION GetCoordRange \ + (CCTK_POINTER_TO_CONST IN cctkGH, \ + CCTK_INT IN m, \ + CCTK_INT IN ml, \ + CCTK_INT IN size, \ + CCTK_INT ARRAY OUT gsh, \ + CCTK_REAL ARRAY OUT lower, \ + CCTK_REAL ARRAY OUT upper, \ + CCTK_REAL ARRAY OUT delta) +REQUIRES FUNCTION GetCoordRange |