From f625f29d7d5c694ab91e801c3ba3e1a7d5eaa42d Mon Sep 17 00:00:00 2001 From: Fanny CHOPOT <fanny.chopot.ocre@cea.fr> Date: Tue, 12 Jun 2018 11:50:42 +0200 Subject: [PATCH] modif : les valeurs de k ne changent plus sur les mailles --- src/main.cpp | 10 +++++----- src/scheme/AcousticSolver.hpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 786d2e3d4..0a83b28d9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -160,7 +160,7 @@ int main(int argc, char *argv[]) double c = 0.; c = finite_volumes_diffusion.conservatif(unknowns); - + /* // Ecriture des valeurs initiales dans un fichier const Kokkos::View<const Rd*> xj = mesh_data.xj(); @@ -257,7 +257,7 @@ int main(int argc, char *argv[]) } } diff.close(); - + */ while((t<tmax) and (iteration<itermax)) { @@ -325,10 +325,10 @@ int main(int argc, char *argv[]) ++iteration; std::cout << "temps t : " << t << std::endl; - + /* // ECRITURE DANS UN FICHIER - if ((std::fmod(t,0.001) < 0.0001) or (t == tmax)) { + if ((std::fmod(t,0.01) < 0.0001) or (t == tmax)) { std::string ligne; @@ -544,7 +544,7 @@ int main(int argc, char *argv[]) riffout.close(); } - + */ // ENTROPY TEST //finite_volumes_diffusion.entropie(unknowns); diff --git a/src/scheme/AcousticSolver.hpp b/src/scheme/AcousticSolver.hpp index 407f07b33..1e8df86b3 100644 --- a/src/scheme/AcousticSolver.hpp +++ b/src/scheme/AcousticSolver.hpp @@ -384,7 +384,7 @@ public: }); // Mise a jour de k - + /* Kokkos::parallel_for(m_mesh.numberOfCells(), KOKKOS_LAMBDA(const int& j) { //kj(j) = xj[j][0]; //kj(j) = 0.5; @@ -400,7 +400,7 @@ public: } }); - + */ } }; -- GitLab