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

nettoyage code

parent 66360fb6
No related branches found
No related tags found
No related merge requests found
...@@ -260,7 +260,7 @@ int main(int argc, char *argv[]) ...@@ -260,7 +260,7 @@ int main(int argc, char *argv[])
{ // gnuplot output for density { // gnuplot output for density
const Kokkos::View<const Rd*> xj = mesh_data.xj(); const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const Rd*> uj = unknowns.uj(); const Kokkos::View<const Rd*> uj = unknowns.uj();
std::ofstream fout("rho euler"); std::ofstream fout("rho");
fout.precision(15); fout.precision(15);
for (size_t j=0; j<mesh.numberOfCells(); ++j) { for (size_t j=0; j<mesh.numberOfCells(); ++j) {
fout << xj[j][0] << ' ' << rhoj[j] << '\n'; fout << xj[j][0] << ' ' << rhoj[j] << '\n';
...@@ -271,7 +271,7 @@ int main(int argc, char *argv[]) ...@@ -271,7 +271,7 @@ int main(int argc, char *argv[])
const Kokkos::View<const Rd*> xj = mesh_data.xj(); const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const Rd*> uj = unknowns.uj(); const Kokkos::View<const Rd*> uj = unknowns.uj();
//double pi = 4.*std::atan(1.); //double pi = 4.*std::atan(1.);
std::ofstream fout("u euler"); std::ofstream fout("u");
fout.precision(15); fout.precision(15);
for (size_t j=0; j<mesh.numberOfCells(); ++j) { for (size_t j=0; j<mesh.numberOfCells(); ++j) {
//fout << xj[j][0] << ' ' << uj[j][0] << ' ' << std::sin(pi*xj[j][0])*std::exp(-2.*pi*pi*0.2) <<'\n'; //cas k constant //fout << xj[j][0] << ' ' << uj[j][0] << ' ' << std::sin(pi*xj[j][0])*std::exp(-2.*pi*pi*0.2) <<'\n'; //cas k constant
...@@ -284,7 +284,7 @@ int main(int argc, char *argv[]) ...@@ -284,7 +284,7 @@ int main(int argc, char *argv[])
const Kokkos::View<const Rd*> xj = mesh_data.xj(); const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const double*> Ej = unknowns.Ej(); const Kokkos::View<const double*> Ej = unknowns.Ej();
//double pi = 4.*std::atan(1.); //double pi = 4.*std::atan(1.);
std::ofstream fout("E euler"); std::ofstream fout("E");
fout.precision(15); fout.precision(15);
for (size_t j=0; j<mesh.numberOfCells(); ++j) { for (size_t j=0; j<mesh.numberOfCells(); ++j) {
//fout << xj[j][0] << ' ' << Ej[j] << ' ' << (-(std::cos(pi*xj[j][0])*std::cos(pi*xj[j][0]))+(std::sin(pi*xj[j][0])*std::sin(pi*xj[j][0])))*0.5*(std::exp(-4.*pi*pi*0.2)-1.) + 2. <<'\n'; // cas k constant //fout << xj[j][0] << ' ' << Ej[j] << ' ' << (-(std::cos(pi*xj[j][0])*std::cos(pi*xj[j][0]))+(std::sin(pi*xj[j][0])*std::sin(pi*xj[j][0])))*0.5*(std::exp(-4.*pi*pi*0.2)-1.) + 2. <<'\n'; // cas k constant
......
...@@ -85,7 +85,9 @@ public: ...@@ -85,7 +85,9 @@ public:
} }
}); });
} }
*/ */
~Mesh() ~Mesh()
{ {
; ;
......
...@@ -419,7 +419,6 @@ public: ...@@ -419,7 +419,6 @@ public:
} }
// Verifie la conservativite de quantite de mvt // Verifie la conservativite de quantite de mvt
double conservatif_mvt(UnknownsType& unknowns) { double conservatif_mvt(UnknownsType& unknowns) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment