diff --git a/src/main.cpp b/src/main.cpp index 1a1d939cc020272ceb76dd61808a74c92b990a0d..a2e5222d87c245ead518eb9709cbfa37e9344be9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -197,7 +197,6 @@ int main(int argc, char *argv[]) typedef TinyVector<MeshType::dimension> Rd; const Kokkos::View<const double*> Vj = mesh_data.Vj(); - const NodeByCellData<Rd> Cjr = mesh_data.Cjr(); const double tmax=0.2; double t=0; diff --git a/src/mesh/MeshData.hpp b/src/mesh/MeshData.hpp index 79c8cbba1662f325a43e4f2afe13d14ee766d31a..56d98058c84c2ca9f01b60c6b7f8bfed47425410 100644 --- a/src/mesh/MeshData.hpp +++ b/src/mesh/MeshData.hpp @@ -214,12 +214,8 @@ public: m_Cjr(j,0)=-1; m_Cjr(j,1)= 1; }); - // in 1d njr=Cjr -#warning set equality between njr and Cjr - Kokkos::parallel_for(m_mesh.numberOfCells(), KOKKOS_LAMBDA(const int& j) { - m_njr(j,0)=-1; - m_njr(j,1)= 1; - }); + // in 1d njr=Cjr (here performs a shallow copy) + m_njr=m_Cjr; Kokkos::parallel_for(m_mesh.numberOfCells(), KOKKOS_LAMBDA(const int& j) { m_ljr(j,0)= 1; m_ljr(j,1)= 1; diff --git a/src/scheme/NodeByCellData.hpp b/src/scheme/NodeByCellData.hpp index 723cd1f4811e5eb127acaeafea27dee77102a41f..4659ec148f673b1d20216806fa178c70d02bad6c 100644 --- a/src/scheme/NodeByCellData.hpp +++ b/src/scheme/NodeByCellData.hpp @@ -96,6 +96,8 @@ class NodeByCellData } }; + NodeByCellData& operator=(const NodeByCellData&) = default; + KOKKOS_INLINE_FUNCTION DataType& operator()(const size_t& j, const size_t& r) {