Skip to content

Commit

Permalink
Fem: fix trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz authored and wwmayer committed Apr 1, 2023
1 parent 31da3e7 commit c39dbc9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ bool TaskDlgFemConstraintDisplacement::accept()
name.c_str(),
parameterDisplacement->get_useFlowSurfaceForce() ? "True"
: "False");

std::string scale = parameterDisplacement->getScale();// OvG: determine modified scale
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.Scale = %s",
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ ViewProviderFemPostFunction::ViewProviderFemPostFunction()
AutoScaleFactorY, (1), "AutoScale", App::Prop_Hidden, "Automatic scaling factor");
ADD_PROPERTY_TYPE(
AutoScaleFactorZ, (1), "AutoScale", App::Prop_Hidden, "Automatic scaling factor");

m_geometrySeperator = new SoSeparator();
m_geometrySeperator->ref();

m_scale = new SoScale();
m_scale->ref();
m_scale->scaleFactor = SbVec3f(1, 1, 1);
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Fem/femexamples/equation_deformation_spring_elmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def setup(doc=None, solvertype="elmer"):
SketchPath.MapMode = "FlatFace"
SketchPath.addGeometry(Part.LineSegment(Vector(
-20.0, 30.0, 0.0), Vector(-20.0, 0.0, 0.0)), False)
SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 0, 2, -1))
SketchPath.addConstraint(Sketcher.Constraint('Vertical', 0))
SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 0, 2, -1))
SketchPath.addConstraint(Sketcher.Constraint('Vertical', 0))
SketchPath.addGeometry(Part.ArcOfCircle(Part.Circle(
Vector(0.0, 0.0, 0.0), Vector(0, 0, 1), 20.0), 3.141593, 6.283185), False)
SketchPath.addConstraint(Sketcher.Constraint('Tangent', 0, 2, 1, 1))
SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 1, 2, -1))
SketchPath.addConstraint(Sketcher.Constraint('Tangent', 0, 2, 1, 1))
SketchPath.addConstraint(Sketcher.Constraint('PointOnObject', 1, 2, -1))
SketchPath.addGeometry(Part.LineSegment(
Vector(20.0, 0.0, 0.0), Vector(20.0, 30.0, 0.0)), False)
SketchPath.addConstraint(Sketcher.Constraint('Tangent', 1, 2, 2, 1))
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femsolver/elmer/equations/heat_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def handleHeatInitial(self, bodies):
tempObj = self.write.getSingleMember("Fem::ConstraintInitialTemperature")
if tempObj is not None:
refTemp = float(tempObj.initialTemperature.getValueAs("K"))
for name in bodies:
for name in bodies:
self.write.initial(name, "Temperature", refTemp)
self.write.handled(tempObj)

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femsolver/elmer/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def _handleSimulation(self):
self._simulation("BDF Order", self.solver.BDFOrder)
self._simulation("Output Intervals", self.solver.OutputIntervals)
self._simulation("Timestep Intervals", self.solver.TimestepIntervals)
self._simulation("Timestep Sizes", self.solver.TimestepSizes)
self._simulation("Timestep Sizes", self.solver.TimestepSizes)
self._simulation("Timestepping Method", "BDF")
self._simulation("Use Mesh Names", True)

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femtools/femutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def startProgramInfo(code):
return info

def expandParentObject():
""" expands parent and selected obj in tree view """
""" expands parent and selected obj in tree view """
trees = FreeCADGui.getMainWindow().findChildren(QtGui.QTreeWidget)
for tree in trees:
items = tree.selectedItems()
Expand Down

0 comments on commit c39dbc9

Please sign in to comment.