Skip to content

Commit

Permalink
FEM: mesh python api, delete some empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Aug 15, 2016
1 parent 5f94c14 commit 421b3f5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Mod/Fem/App/FemMeshPyImp.cpp
Expand Up @@ -220,7 +220,6 @@ PyObject* FemMeshPy::addNode(PyObject *args)
"-- addNode(x,y,z)\n"
"-- addNode(x,y,z,ElemId)\n");
return 0;

}

PyObject* FemMeshPy::addEdge(PyObject *args)
Expand Down Expand Up @@ -313,11 +312,8 @@ PyObject* FemMeshPy::addFace(PyObject *args)
default:
throw std::runtime_error("Unknown node count, [3|4|6|8] are allowed"); //unknown face type
}

return Py::new_reference_to(Py::Int(face->GetID()));

}

PyErr_SetString(PyExc_TypeError, "addFace accepts:\n"
"-- int,int,int\n"
"-- [3|4|6|8 int],[int]\n");
Expand Down Expand Up @@ -432,7 +428,6 @@ PyObject* FemMeshPy::addVolume(PyObject *args)
if (!vol)
throw std::runtime_error("Failed to add Hexa20 volume with given ElementId");
break;

default: throw std::runtime_error("Unknown node count, [4|5|6|8|10|13|15|20] are allowed"); //unknown volume type
}
}else{
Expand Down Expand Up @@ -477,21 +472,15 @@ PyObject* FemMeshPy::addVolume(PyObject *args)
if (!vol)
throw std::runtime_error("Failed to add Hexa20 volume");
break;

default: throw std::runtime_error("Unknown node count, [4|5|6|8|10|13|15|20] are allowed"); //unknown volume type
}

}

return Py::new_reference_to(Py::Int(vol->GetID()));

}

PyErr_SetString(PyExc_TypeError, "addVolume accepts:\n"
"-- int,int,int,int\n"
"-- [4|5|6|8|10|13|15|20 int],[int]\n");
return 0;

}

PyObject* FemMeshPy::copy(PyObject *args)
Expand Down

0 comments on commit 421b3f5

Please sign in to comment.