diff --git a/lib/cgpt/lib/lattice/implementation.h b/lib/cgpt/lib/lattice/implementation.h index 8b83877c..83eeda51 100644 --- a/lib/cgpt/lib/lattice/implementation.h +++ b/lib/cgpt/lib/lattice/implementation.h @@ -16,6 +16,8 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + + template class cgpt_Lattice : public cgpt_Lattice_base { public: diff --git a/lib/cgpt/lib/lib.h b/lib/cgpt/lib/lib.h index f487b512..081bbeed 100644 --- a/lib/cgpt/lib/lib.h +++ b/lib/cgpt/lib/lib.h @@ -45,8 +45,8 @@ #include "distribute.h" #include "transform.h" #include "grid.h" -#include "lattice.h" #include "stencil.h" +#include "lattice.h" #include "util.h" #include "precision.h" #include "expression.h" diff --git a/lib/cgpt/lib/stencil/tensor.h b/lib/cgpt/lib/stencil/tensor.h index af1f90b8..369d5d4c 100644 --- a/lib/cgpt/lib/stencil/tensor.h +++ b/lib/cgpt/lib/stencil/tensor.h @@ -148,7 +148,8 @@ class cgpt_stencil_tensor : public cgpt_stencil_tensor_base { typedef typename T::scalar_type element_t; #define NSIMD (sizeof(typename T::vector_type) / sizeof(typename T::scalar_type)) #endif - typedef typename element_t::scalar_type coeff_t; + typedef typename T::scalar_type coeff_t; + VECTOR_ELEMENT_VIEW_OPEN(element_t, fields, fields_v, AcceleratorWrite);