Skip to content
Snippets Groups Projects
Commit 14d7add0 authored by Fanny CHOPOT's avatar Fanny CHOPOT
Browse files

correction moyenne de k par stéphane

parent 66fa0535
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,10 @@ public: ...@@ -85,7 +85,10 @@ public:
{ {
const double delta_x = 1./connectivity.numberOfCells(); const double delta_x = 1./connectivity.numberOfCells();
Kokkos::parallel_for(connectivity.numberOfNodes(), KOKKOS_LAMBDA(const int& r){ Kokkos::parallel_for(connectivity.numberOfNodes(), KOKKOS_LAMBDA(const int& r){
m_xr[r][0] = (r*delta_x)*(r*delta_x); m_xr[r][0] = r*delta_x;
});
Kokkos::parallel_for(connectivity.numberOfNodes(), KOKKOS_LAMBDA(const int& r){
m_xr[r][0] = m_xr[r][0]*m_xr[r][0];
}); });
} }
......
...@@ -100,9 +100,8 @@ private: ...@@ -100,9 +100,8 @@ private:
} }
// k = x // k = x
// m_Fl(l) = ((sum2*0.5)/Vl(l))*sum;
m_Fl(l) = ((sum2*0.5)/Vl(l))*sum; m_Fl(l) = ((sum2/face_nb_cells(l))/Vl(l))*sum;
// k = 2 // k = 2
//m_Fl(l)= (2./Vl(l))*sum; //m_Fl(l)= (2./Vl(l))*sum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment