diff options
author | schnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2004-01-19 22:59:32 +0000 |
---|---|---|
committer | schnetter <schnetter@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2004-01-19 22:59:32 +0000 |
commit | 1d12e8e8ca9a5f91d38edd4cf0f7c660281eadca (patch) | |
tree | 412ef84432ef7a7de212bd7141f1a0197697bc5c /interface.ccl | |
parent | 32024ef94c0b6799d030ad1a4e915bec640aa037 (diff) |
Provide a coordinate-thorn and symmetry-thorn independent way of
specifying the shape of the physical domain and the location of the
boundary points. The advantage of that is that it is now much easier
to change the resolution.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@190 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'interface.ccl')
-rw-r--r-- | interface.ccl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/interface.ccl b/interface.ccl index 96f271a..3c44d2c 100644 --- a/interface.ccl +++ b/interface.ccl @@ -7,6 +7,31 @@ inherits: coordbase INCLUDE HEADER: Symmetry.h in Symmetry.h uses include header: CoordBase.h +# 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 + +CCTK_INT FUNCTION ConvertFromPhysicalBoundary \ + (CCTK_INT INT 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 + + + public: REAL gridspacings type=SCALAR |