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

ajout gnuplot densite rho

parent 5f78d383
Branches
Tags
No related merge requests found
......@@ -225,6 +225,16 @@ int main(int argc, char *argv[])
//method_cost_map["AcousticSolverWithMesh"] = timer.seconds();
method_cost_map["FiniteVolumesDiffusionWithMesh"] = timer.seconds();
{ // gnuplot output for density
const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const Rd*> uj = unknowns.uj();
std::ofstream fout("resultat rho");
fout.precision(15);
for (size_t j=0; j<mesh.numberOfCells(); ++j) {
fout << xj[j][0] << ' ' << rhoj[j] << '\n';
}
}
{ // gnuplot output for vitesse
const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const Rd*> uj = unknowns.uj();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment