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

clean-up

parent 4c734242
Branches
Tags
No related merge requests found
...@@ -205,13 +205,7 @@ void AcousticSolver::computeExplicitFluxes(const Kokkos::View<const double*>& xr ...@@ -205,13 +205,7 @@ void AcousticSolver::computeExplicitFluxes(const Kokkos::View<const double*>& xr
node_cells, node_cell_local_node, node_nb_cells); node_cells, node_cell_local_node, node_nb_cells);
ur = computeUr(Ar, br); ur = computeUr(Ar, br);
#warning understand why this call diminishes performances
Fjr = computeFjr(Ajr, ur, Cjr, uj, pj, cell_nodes); Fjr = computeFjr(Ajr, ur, Cjr, uj, pj, cell_nodes);
// Kokkos::parallel_for(m_nj, KOKKOS_LAMBDA(const int& j) {
// for (int r=0; r<2; ++r) {
// Fjr(j,r) = Ajr(j,r)*(uj(j)-ur(cell_nodes(j,r)))+Cjr(j,r)*pj(j);
// }
// });
} }
AcousticSolver::AcousticSolver(const long int& nj) AcousticSolver::AcousticSolver(const long int& nj)
...@@ -360,8 +354,6 @@ AcousticSolver::AcousticSolver(const long int& nj) ...@@ -360,8 +354,6 @@ AcousticSolver::AcousticSolver(const long int& nj)
ej[j] = Ej[j] - 0.5 * uj[j]*uj[j]; ej[j] = Ej[j] - 0.5 * uj[j]*uj[j];
}); });
// Kokkos::View<double*> xr_new("new_xr", m_nr);
Kokkos::parallel_for(m_nr, KOKKOS_LAMBDA(const int& r){ Kokkos::parallel_for(m_nr, KOKKOS_LAMBDA(const int& r){
xr[r] += dt*ur[r]; xr[r] += dt*ur[r];
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment