Commit 5ebaf538 authored by Heinrich Schindler's avatar Heinrich Schindler
Browse files

Add check if the field map is 2D or 3D.

parent 2daeb8d0
Pipeline #3132138 passed with stage
in 5 minutes and 51 seconds
......@@ -73,6 +73,11 @@ bool ViewFEMesh::Plot(const bool twod) {
pad->cd();
if (!twod) {
if (!m_cmp->m_is3d) {
std::cerr << m_className << "::Plot:\n"
<< " Cannot plot 2D mesh elements in 3D.\n";
return false;
}
DrawElements3d();
DrawDriftLines3d();
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment