From a4ed7cfd73db6ef8418ffb47f4237cc529f8c710 Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 22 Jan 2013 21:00:28 +0000 Subject: MoL Update New integrator Euler. This is an explicit, first-order method, mostly useful for debugging. New integrators AB (Adams-Bashforth) with various orders. These are explicit integrators using several past timelevels to provide higher-order integration with a single RHS evaluation each. Introduce LinearCombination, a generic routine to calculate linear combinations of grid functions. This simplifies existing code, and can be overloaded if MoL should run on a device (e.g. with OpenCL). Replace cctk_lsh with cctk_ash where necessary. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@190 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b --- interface.ccl | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'interface.ccl') diff --git a/interface.ccl b/interface.ccl index d2d14f9..94a4bb7 100644 --- a/interface.ccl +++ b/interface.ccl @@ -206,10 +206,28 @@ PROVIDES FUNCTION MoLNumIntegratorSubsteps WITH MoL_NumIntegratorSubsteps \ # PROVIDES FUNCTION MoLChangeToNoneComplexArray WITH \ # MoL_ChangeToNoneComplexArray LANGUAGE C -################################################## -### Functions provided by devices ### -################################################## - +############################################################## +### Aliased functions that can be provided by other thorns ### +### to override low-level grid variable operations. ### +############################################################## + +CCTK_INT FUNCTION LinearCombination \ + (CCTK_POINTER_TO_CONST IN cctkGH, \ + CCTK_INT IN var, \ + CCTK_REAL IN scale, \ + CCTK_INT ARRAY IN srcs, \ + CCTK_INT ARRAY IN tls, \ + CCTK_REAL ARRAY IN facts, \ + CCTK_INT IN nsrcs) +USES FUNCTION LinearCombination + +CCTK_INT FUNCTION Accelerator_NotifyDataModified \ + (CCTK_POINTER_TO_CONST IN cctkGH, \ + CCTK_INT ARRAY IN variables, \ + CCTK_INT ARRAY IN tls, \ + CCTK_INT IN nvariables, \ + CCTK_INT IN on_device) +USES FUNCTION Accelerator_NotifyDataModified private: -- cgit v1.2.3