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 --- src/Operators.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Operators.h (limited to 'src/Operators.h') diff --git a/src/Operators.h b/src/Operators.h new file mode 100644 index 0000000..72618e4 --- /dev/null +++ b/src/Operators.h @@ -0,0 +1,15 @@ +#ifndef OPERATORS_H +#define OPERATORS_H + +#include + +CCTK_INT +MoL_LinearCombination(cGH const *const cctkGH, + CCTK_INT const var, + CCTK_REAL const scale, + CCTK_INT const srcs[], + CCTK_INT const tls[], + CCTK_REAL const facts[], + CCTK_INT const nsrcs); + +#endif // #ifndef OPERATORS_H -- cgit v1.2.3