Skip to content
Snippets Groups Projects
Commit cdccd144 authored by MARMAJOU ISABELLE's avatar MARMAJOU ISABELLE
Browse files

Implement output of bad polynomial mesh if a cell volume is negative

parent 1fbcbbc5
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,16 @@ MeshData<Mesh<Dimension>>::_storeBadMesh() ...@@ -29,11 +29,16 @@ MeshData<Mesh<Dimension>>::_storeBadMesh()
template void MeshData<Mesh<1>>::_storeBadMesh(); template void MeshData<Mesh<1>>::_storeBadMesh();
template void MeshData<Mesh<2>>::_storeBadMesh(); template void MeshData<Mesh<2>>::_storeBadMesh();
template void MeshData<Mesh<3>>::_storeBadMesh(); template void MeshData<Mesh<3>>::_storeBadMesh();
void void
MeshData<PolynomialMesh<2>>::_storeBadMesh() MeshData<PolynomialMesh<2>>::_storeBadMesh()
{ {
throw NotImplementedError("storeBadMesh"); VTKWriter writer("bad_mesh");
writer.writeOnMesh(m_mesh.meshVariant(),
{std::make_shared<NamedItemValueVariant>(std::make_shared<ItemValueVariant>(m_Vj), "volume")});
std::ostringstream error_msg;
error_msg << "mesh contains cells of non-positive volume (see " << rang::fgB::yellow << "bad_mesh.pvd"
<< rang::fg::reset << " file).";
throw NormalError(error_msg.str());
} }
template <size_t MeshDegree> template <size_t MeshDegree>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment