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

Add tests for MeshFlatNodeBoundary

parent 661a4bbe
No related branches found
No related tags found
1 merge request!140Change referenced item list policy
...@@ -24,8 +24,8 @@ MeshFlatNodeBoundary<Dimension>::_checkBoundaryIsFlat(const TinyVector<Dimension ...@@ -24,8 +24,8 @@ MeshFlatNodeBoundary<Dimension>::_checkBoundaryIsFlat(const TinyVector<Dimension
if (parallel::allReduceOr(is_bad)) { if (parallel::allReduceOr(is_bad)) {
std::ostringstream ost; std::ostringstream ost;
ost << "invalid boundary " << rang::fgB::yellow << this->m_boundary_name << rang::style::reset ost << "invalid boundary \"" << rang::fgB::yellow << this->m_boundary_name << rang::style::reset
<< ": boundary is not flat!"; << "\": boundary is not flat!";
throw NormalError(ost.str()); throw NormalError(ost.str());
} }
} }
...@@ -68,8 +68,8 @@ MeshFlatNodeBoundary<2>::_getNormal(const Mesh<Connectivity<2>>& mesh) ...@@ -68,8 +68,8 @@ MeshFlatNodeBoundary<2>::_getNormal(const Mesh<Connectivity<2>>& mesh)
if (xmin == xmax) { if (xmin == xmax) {
std::ostringstream ost; std::ostringstream ost;
ost << "invalid boundary " << rang::fgB::yellow << this->m_boundary_name << rang::style::reset ost << "invalid boundary \"" << rang::fgB::yellow << this->m_boundary_name << rang::style::reset
<< ": unable to compute normal"; << "\": unable to compute normal";
throw NormalError(ost.str()); throw NormalError(ost.str());
} }
...@@ -126,8 +126,8 @@ MeshFlatNodeBoundary<3>::_getNormal(const Mesh<Connectivity<3>>& mesh) ...@@ -126,8 +126,8 @@ MeshFlatNodeBoundary<3>::_getNormal(const Mesh<Connectivity<3>>& mesh)
if (normal_l2 == 0) { if (normal_l2 == 0) {
std::ostringstream ost; std::ostringstream ost;
ost << "invalid boundary " << rang::fgB::yellow << this->m_boundary_name << rang::style::reset ost << "invalid boundary \"" << rang::fgB::yellow << this->m_boundary_name << rang::style::reset
<< ": unable to compute normal"; << "\": unable to compute normal";
throw NormalError(ost.str()); throw NormalError(ost.str());
} }
......
...@@ -177,6 +177,7 @@ add_executable (mpi_unit_tests ...@@ -177,6 +177,7 @@ add_executable (mpi_unit_tests
test_ItemValueUtils.cpp test_ItemValueUtils.cpp
test_MeshFaceBoundary.cpp test_MeshFaceBoundary.cpp
test_MeshFlatFaceBoundary.cpp test_MeshFlatFaceBoundary.cpp
test_MeshFlatNodeBoundary.cpp
test_MeshNodeBoundary.cpp test_MeshNodeBoundary.cpp
test_Messenger.cpp test_Messenger.cpp
test_OFStream.cpp test_OFStream.cpp
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment