Skip to content
Snippets Groups Projects
Commit eb480101 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Added simple 3d hexahedra output

Should differentiate a bit more dimensional outputs
parent 73c75344
No related branches found
No related tags found
No related merge requests found
...@@ -55,8 +55,12 @@ public: ...@@ -55,8 +55,12 @@ public:
fout << "0 "; // VTK requires 3 components fout << "0 "; // VTK requires 3 components
} }
} else { } else {
std::cerr << "VTKWriter not implemented in dimension " << MeshType::dimension << '\n'; const Kokkos::View<const TinyVector<3>*> xr = mesh.xr();
std::exit(1); for (unsigned int r=0; r<mesh.numberOfNodes(); ++r) {
for (unsigned short i=0; i<3; ++i) {
fout << xr[r][i] << ' ';
}
}
} }
fout << '\n'; fout << '\n';
fout << "</DataArray>\n"; fout << "</DataArray>\n";
...@@ -101,6 +105,10 @@ public: ...@@ -101,6 +105,10 @@ public:
fout << "9 "; fout << "9 ";
break; break;
} }
case 8: {
fout << "12 ";
break;
}
default: { default: {
fout << "7 "; fout << "7 ";
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment