Skip to content
Snippets Groups Projects
Commit 14de7f2a authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fixed Kokkos deprecated code in debug mode

parent 0d157b97
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ private: ...@@ -110,7 +110,7 @@ private:
}); });
m_face_nb_nodes = face_nb_nodes; m_face_nb_nodes = face_nb_nodes;
Kokkos::View<unsigned int*[2]> face_nodes("face_nodes", m_number_of_faces, 2); Kokkos::View<unsigned int**> face_nodes("face_nodes", m_number_of_faces, 2);
{ {
int l=0; int l=0;
for (const auto& face_cells_vector : face_cells_map) { for (const auto& face_cells_vector : face_cells_map) {
......
...@@ -872,7 +872,7 @@ GmshReader::__proceedData() ...@@ -872,7 +872,7 @@ GmshReader::__proceedData()
const size_t nb_cells = (dimension1_mask, elementNumber); const size_t nb_cells = (dimension1_mask, elementNumber);
const size_t max_nb_node_per_cell=2; const size_t max_nb_node_per_cell=2;
const Kokkos::View<unsigned int*[2]> cell_nodes("cell_nodes", nb_cells, max_nb_node_per_cell); const Kokkos::View<unsigned int**> cell_nodes("cell_nodes", nb_cells, max_nb_node_per_cell);
for (size_t j=0; j<nb_cells; ++j) { for (size_t j=0; j<nb_cells; ++j) {
cell_nodes(j,0) = __edges[j][0]; cell_nodes(j,0) = __edges[j][0];
cell_nodes(j,1) = __edges[j][1]; cell_nodes(j,1) = __edges[j][1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment