diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-11-03 17:06:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-11-03 17:06:00 +0000 |
commit | 19c3b291d6cb74f29a630e3078a6b80c79a1c0c7 (patch) | |
tree | 5055b6294b40faa1949386787e5c3f32acc8db94 /Carpet/Carpet/interface.ccl | |
parent | b73fd2162aeeb5752fc48b820563ffae910b13b7 (diff) |
Carpet: Provide function GetRefinementLevel
Provide aliased functions GetRefinementLevel and GetRefinementLevels.
darcs-hash:20071103170601-dae7b-41512ac0bd0c0e0af644de7c046b9ef70a1b28c3.gz
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r-- | Carpet/Carpet/interface.ccl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl index 1ef3a39c1..f4310744d 100644 --- a/Carpet/Carpet/interface.ccl +++ b/Carpet/Carpet/interface.ccl @@ -154,6 +154,23 @@ PROVIDES FUNCTION GetCoordRange WITH Carpet_GetCoordRange LANGUAGE C +# Get current refinement level and number of refinement levels +CCTK_INT FUNCTION \ + GetRefinementLevel \ + (CCTK_POINTER_TO_CONST IN cctkGH) +PROVIDES FUNCTION GetRefinementLevel \ + WITH Carpet_GetRefinementLevel \ + LANGUAGE C + +CCTK_INT FUNCTION \ + GetRefinementLevels \ + (CCTK_POINTER_TO_CONST IN cctkGH) +PROVIDES FUNCTION GetRefinementLevels \ + WITH Carpet_GetRefinementLevels \ + LANGUAGE C + + + # The true prototype of the routine below: # int Carpet_Regrid (const cGH * cctkGH, # gh::mregs * regsss, |