From 9928cd0a8e8683d47e385b38b7723ed7ede34b9e Mon Sep 17 00:00:00 2001 From: diener Date: Wed, 6 Oct 2004 20:07:54 +0000 Subject: Moved call_derivs.c to call_derivs_name.c. Created a new differncing routine (after Erik explained to me that CCTK_ARGUMENTS can be accessed even though they are not passed into the routine) that is called with the variables themselves and not their names. These are provided by the aliased function Diff_gf, so now the x-derivatives of rho can be found with the call: Diff_gv ( cctkGH, 0, rho, drhox ); Also made the determination of the gridspacing use CCTK_DELTA_SPACE (now that I know how to do it) so the routines should now also work with mesh-refinement. git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/SummationByParts/trunk@4 f69c4107-0314-4c4f-9ad4-17e986b73f4a --- interface.ccl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'interface.ccl') diff --git a/interface.ccl b/interface.ccl index c306db4..9eef8aa 100644 --- a/interface.ccl +++ b/interface.ccl @@ -19,6 +19,12 @@ SUBROUTINE Diff_gf ( CCTK_POINTER IN cctkGH, \ CCTK_STRING IN dvar_name ) PROVIDES FUNCTION Diff_gf WITH DiffGf LANGUAGE C +SUBROUTINE Diff_gv ( CCTK_POINTER IN cctkGH, \ + CCTK_INT IN dir, \ + CCTK_REAL IN ARRAY var, \ + CCTK_REAL OUT ARRAY dvar ) +PROVIDES FUNCTION Diff_gv WITH DiffGv LANGUAGE C + CCTK_INT FUNCTION GetDomainSpecification \ (CCTK_INT IN size, \ CCTK_REAL OUT ARRAY physical_min, \ -- cgit v1.2.3