Fem: Apply clang-format
This commit is contained in:
@@ -30,26 +30,26 @@
|
||||
|
||||
#include "FemAnalysis.h"
|
||||
#include "FemConstraintBearing.h"
|
||||
#include "FemConstraintFixed.h"
|
||||
#include "FemConstraintForce.h"
|
||||
#include "FemConstraintPressure.h"
|
||||
#include "FemConstraintGear.h"
|
||||
#include "FemConstraintPulley.h"
|
||||
#include "FemConstraintContact.h"
|
||||
#include "FemConstraintDisplacement.h"
|
||||
#include "FemConstraintTemperature.h"
|
||||
#include "FemConstraintFixed.h"
|
||||
#include "FemConstraintFluidBoundary.h"
|
||||
#include "FemConstraintForce.h"
|
||||
#include "FemConstraintGear.h"
|
||||
#include "FemConstraintHeatflux.h"
|
||||
#include "FemConstraintInitialTemperature.h"
|
||||
#include "FemConstraintPlaneRotation.h"
|
||||
#include "FemConstraintContact.h"
|
||||
#include "FemConstraintFluidBoundary.h"
|
||||
#include "FemConstraintTransform.h"
|
||||
#include "FemConstraintPressure.h"
|
||||
#include "FemConstraintPulley.h"
|
||||
#include "FemConstraintSpring.h"
|
||||
#include "FemConstraintTemperature.h"
|
||||
#include "FemConstraintTransform.h"
|
||||
#include "FemMesh.h"
|
||||
#include "FemMeshObject.h"
|
||||
#include "FemMeshProperty.h"
|
||||
#include "FemMeshPy.h"
|
||||
#include "FemMeshShapeObject.h"
|
||||
#include "FemMeshShapeNetgenObject.h"
|
||||
#include "FemMeshShapeObject.h"
|
||||
#include "FemResultObject.h"
|
||||
#include "FemSetElementsObject.h"
|
||||
#include "FemSetFacesObject.h"
|
||||
@@ -59,14 +59,15 @@
|
||||
#include "HypothesisPy.h"
|
||||
|
||||
#ifdef FC_USE_VTK
|
||||
# include "FemPostFilter.h"
|
||||
# include "FemPostFunction.h"
|
||||
# include "FemPostPipeline.h"
|
||||
# include "PropertyPostDataObject.h"
|
||||
#include "FemPostFilter.h"
|
||||
#include "FemPostFunction.h"
|
||||
#include "FemPostPipeline.h"
|
||||
#include "PropertyPostDataObject.h"
|
||||
#endif
|
||||
|
||||
|
||||
namespace Fem {
|
||||
namespace Fem
|
||||
{
|
||||
extern PyObject* initModule();
|
||||
}
|
||||
|
||||
@@ -76,15 +77,16 @@ PyMOD_INIT_FUNC(Fem)
|
||||
// load dependent module
|
||||
try {
|
||||
Base::Interpreter().loadModule("Part");
|
||||
//Base::Interpreter().loadModule("Mesh");
|
||||
// Base::Interpreter().loadModule("Mesh");
|
||||
}
|
||||
catch(const Base::Exception& e) {
|
||||
catch (const Base::Exception& e) {
|
||||
PyErr_SetString(PyExc_ImportError, e.what());
|
||||
PyMOD_Return(nullptr);
|
||||
}
|
||||
PyObject* femModule = Fem::initModule();
|
||||
Base::Console().Log("Loading Fem module... done\n");
|
||||
|
||||
// clang-format off
|
||||
Fem::StdMeshers_Arithmetic1DPy ::init_type(femModule);
|
||||
Fem::StdMeshers_AutomaticLengthPy ::init_type(femModule);
|
||||
Fem::StdMeshers_NotConformAllowedPy ::init_type(femModule);
|
||||
@@ -194,6 +196,7 @@ PyMOD_INIT_FUNC(Fem)
|
||||
|
||||
Fem::PropertyPostDataObject ::init();
|
||||
#endif
|
||||
// clang-format on
|
||||
|
||||
PyMOD_Return(femModule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user