aboutsummaryrefslogtreecommitdiff
path: root/src/PUGHSlab.h
diff options
context:
space:
mode:
authortradke <tradke@10716dce-81a3-4424-a2c8-48026a0d3035>2003-09-01 10:51:00 +0000
committertradke <tradke@10716dce-81a3-4424-a2c8-48026a0d3035>2003-09-01 10:51:00 +0000
commit223ab02512f9b179051da44adcdd48315a2b3161 (patch)
treee3c0a87098e8fc85b9f96b8e4f7465d9c663cf68 /src/PUGHSlab.h
parente937842cbe0aa6bd8b3268a96a1718d8a6c1dbc0 (diff)
Fixed predefined routines for datatype conversions. Now they take the source
and destination datatype as additional arguments, and the stride parameter was split into a source and a destination stride. This should be most general now. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@107 10716dce-81a3-4424-a2c8-48026a0d3035
Diffstat (limited to 'src/PUGHSlab.h')
-rw-r--r--src/PUGHSlab.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/PUGHSlab.h b/src/PUGHSlab.h
index 7e8acec..8383280 100644
--- a/src/PUGHSlab.h
+++ b/src/PUGHSlab.h
@@ -18,11 +18,13 @@ extern "C"
#endif
/* prototype of a datatype conversion routine */
-typedef void (*t_hslabConversionFn) (const void *src,
- void *dst,
- CCTK_INT nelems,
- CCTK_INT src_stride,
- CCTK_INT dst_stride);
+typedef CCTK_INT (*t_hslabConversionFn) (CCTK_INT nelems,
+ CCTK_INT src_stride,
+ CCTK_INT dst_stride,
+ CCTK_INT src_type,
+ CCTK_INT dst_type,
+ CCTK_POINTER_TO_CONST src,
+ CCTK_POINTER dst);
/* function prototypes */
CCTK_INT PUGHSlab_Get (const cGH *GH,