FEM: remove trailing whitespaces

This commit is contained in:
Bernd Hahnebach
2016-04-14 19:43:47 +02:00
committed by wmayer
parent 11a1de07d1
commit 3091fd5973
65 changed files with 217 additions and 217 deletions

View File

@@ -63,7 +63,7 @@ std::string FemMeshPy::representation(void) const
PyObject *FemMeshPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Python wrapper
{
// create a new instance of FemMeshPy and the Twin object
// create a new instance of FemMeshPy and the Twin object
return new FemMeshPy(new FemMesh);
}
@@ -71,7 +71,7 @@ PyObject *FemMeshPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Py
int FemMeshPy::PyInit(PyObject* args, PyObject* /*kwd*/)
{
PyObject *pcObj=0;
if (!PyArg_ParseTuple(args, "|O", &pcObj)) // convert args: Python->C
if (!PyArg_ParseTuple(args, "|O", &pcObj)) // convert args: Python->C
return -1; // NULL triggers exception
try {
@@ -287,7 +287,7 @@ PyObject* FemMeshPy::addFace(PyObject *args)
throw std::runtime_error("Failed to get node of the given indices");
Nodes.push_back(node);
}
SMDS_MeshFace* face=0;
switch(Nodes.size()){
case 3:
@@ -390,7 +390,7 @@ PyObject* FemMeshPy::addVolume(PyObject *args)
throw std::runtime_error("Failed to get node of the given indices");
Nodes.push_back(node);
}
SMDS_MeshVolume* vol=0;
if(ElementId != -1) {
switch(Nodes.size()){
@@ -810,7 +810,7 @@ Py::Dict FemMeshPy::getNodes(void) const
for (int i=0;aNodeIter->more();i++) {
const SMDS_MeshNode* aNode = aNodeIter->next();
Base::Vector3d vec(aNode->X(),aNode->Y(),aNode->Z());
// Apply the matrix to hold the BoundBox in absolute space.
// Apply the matrix to hold the BoundBox in absolute space.
vec = Mtrx * vec;
int id = aNode->GetID();
@@ -947,7 +947,7 @@ Py::Int FemMeshPy::getGroupCount(void) const
Py::Object FemMeshPy::getVolume(void) const
{
return Py::Object(new Base::QuantityPy(new Base::Quantity(getFemMeshPtr()->getVolume())));
}
// ===== custom attributes ============================================================
@@ -958,5 +958,5 @@ PyObject *FemMeshPy::getCustomAttributes(const char* /*attr*/) const
int FemMeshPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
{
return 0;
return 0;
}