From 37336c9e0c19596e3dece3bd507feda25cdfcce3 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 18 May 2019 17:41:13 +0100 Subject: [PATCH] Allow compress to be either vector or scalar types --- Grid/stencil/SimpleCompressor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/stencil/SimpleCompressor.h b/Grid/stencil/SimpleCompressor.h index b9dc3fb4..be7c89c0 100644 --- a/Grid/stencil/SimpleCompressor.h +++ b/Grid/stencil/SimpleCompressor.h @@ -9,7 +9,7 @@ public: void Point(int) {}; accelerator_inline int CommDatumSize(void) { return sizeof(vobj); } accelerator_inline bool DecompressionStep(void) { return false; } - accelerator_inline void Compress(vobj *buf,int o,const vobj &in) { buf[o]=in; } + template accelerator_inline void Compress(cobj *buf,int o,const cobj &in) { buf[o]=in; } accelerator_inline void Exchange(vobj *mp,vobj *vp0,vobj *vp1,Integer type,Integer o){ exchange(mp[2*o],mp[2*o+1],vp0[o],vp1[o],type); }