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

ajout gnuplot u

parent e42d56d4
No related branches found
No related tags found
No related merge requests found
......@@ -180,10 +180,11 @@ int main(int argc, char *argv[])
{ // gnuplot output for density
const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const double*> rhoj = unknowns.rhoj();
std::ofstream fout("rho");
const Kokkos::View<const Rd*> uj = unknowns.uj();
double pi = 4.*std::atan(1.);
std::ofstream fout("comparaison u");
for (size_t j=0; j<mesh.numberOfCells(); ++j) {
fout << xj[j][0] << ' ' << rhoj[j] << '\n';
fout << xj[j][0] << ' ' << uj[j][0] << ' ' << std::sin(pi*xj[j][0])*std::exp(-pi*pi*0.2) <<'\n';
}
}
......
......@@ -102,7 +102,7 @@ private:
// k = 1
m_Fl(l)= (1./(2*Vl(l)))*sum;
m_Fl(l)= (1./Vl(l))*sum;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment