Skip to content

Commit 131fc12

Browse files
Merge pull request #2 from chrispbradley/develop
Update for merge
2 parents 31d2aed + 25fbca9 commit 131fc12

File tree

3 files changed

+156
-154
lines changed

3 files changed

+156
-154
lines changed

src/python/dof_constraints.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@
162162
problem.SolverGet([iron.ControlLoopIdentifiers.NODE], 1, nonLinearSolver)
163163
nonLinearSolver.outputType = iron.SolverOutputTypes.PROGRESS
164164
nonLinearSolver.NewtonJacobianCalculationTypeSet(iron.JacobianCalculationTypes.FD)
165+
nonLinearSolver.NewtonAbsoluteToleranceSet(1e-14)
166+
nonLinearSolver.NewtonSolutionToleranceSet(1e-14)
167+
nonLinearSolver.NewtonRelativeToleranceSet(1e-14)
165168
nonLinearSolver.NewtonLinearSolverGet(linearSolver)
166169
linearSolver.linearType = iron.LinearSolverTypes.DIRECT
167170
problem.SolversCreateFinish()
@@ -216,10 +219,9 @@
216219
# Solve the problem
217220
problem.Solve()
218221

219-
if not os.path.exists("./results"):
220-
os.makedirs("./results")
221-
222222
# Export results
223+
if not os.path.exists('./results'):
224+
os.makedirs('./results')
223225
fields = iron.Fields()
224226
fields.CreateRegion(region)
225227
fields.NodesExport("./results/Cantilever", "FORTRAN")

src/python/expected_results/Cantilever.part0.exelem renamed to src/python/expected_results/results/Cantilever.part0.exelem

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@
265265
2.0000000000000000E+00
266266
1.0000000000000000E+00
267267
8.9999999999999998E-04
268-
-2.1950386260517363E-01
269-
5.5546902189007596E-08
268+
-2.1950384114688470E-01
269+
-9.9653618690354051E-13
270270
0.0000000000000000E+00
271271
0.0000000000000000E+00
272272
-9.8100000000000005E+00
@@ -279,8 +279,8 @@
279279
2.0000000000000000E+00
280280
1.0000000000000000E+00
281281
8.9999999999999998E-04
282-
1.4670178093238712E-01
283-
1.7388089190717437E-08
282+
1.4670178832402728E-01
283+
2.1671553440683056E-12
284284
0.0000000000000000E+00
285285
0.0000000000000000E+00
286286
-9.8100000000000005E+00
@@ -293,8 +293,8 @@
293293
2.0000000000000000E+00
294294
1.0000000000000000E+00
295295
8.9999999999999998E-04
296-
-2.1950196292028593E-01
297-
5.8741681741025786E-08
296+
-2.1950194154756292E-01
297+
2.8297364451645990E-12
298298
0.0000000000000000E+00
299299
0.0000000000000000E+00
300300
-9.8100000000000005E+00
@@ -307,8 +307,8 @@
307307
2.0000000000000000E+00
308308
1.0000000000000000E+00
309309
8.9999999999999998E-04
310-
1.4668093545033564E-01
311-
1.1645525432868453E-08
310+
1.4668094382937771E-01
311+
1.1617373729677638E-12
312312
0.0000000000000000E+00
313313
0.0000000000000000E+00
314314
-9.8100000000000005E+00
@@ -321,8 +321,8 @@
321321
2.0000000000000000E+00
322322
1.0000000000000000E+00
323323
8.9999999999999998E-04
324-
2.4655303134640730E-01
325-
3.8760818998895274E-08
324+
2.4655299796392760E-01
325+
6.6213701188644336E-13
326326
0.0000000000000000E+00
327327
0.0000000000000000E+00
328328
-9.8100000000000005E+00
@@ -335,8 +335,8 @@
335335
2.0000000000000000E+00
336336
1.0000000000000000E+00
337337
8.9999999999999998E-04
338-
-1.4298081571297214E-01
339-
8.9158866956040583E-09
338+
-1.4298077477648827E-01
339+
2.0285995105950860E-12
340340
0.0000000000000000E+00
341341
0.0000000000000000E+00
342342
-9.8100000000000005E+00
@@ -349,8 +349,8 @@
349349
2.0000000000000000E+00
350350
1.0000000000000000E+00
351351
8.9999999999999998E-04
352-
2.4656334168127192E-01
353-
3.9549687969042679E-08
352+
2.4656330771970897E-01
353+
-5.0714987764877151E-13
354354
0.0000000000000000E+00
355355
0.0000000000000000E+00
356356
-9.8100000000000005E+00
@@ -363,8 +363,8 @@
363363
2.0000000000000000E+00
364364
1.0000000000000000E+00
365365
8.9999999999999998E-04
366-
-1.4300692500472759E-01
367-
6.0242122401632514E-09
366+
-1.4300688277747234E-01
367+
6.9277916736609768E-13
368368
0.0000000000000000E+00
369369
0.0000000000000000E+00
370370
-9.8100000000000005E+00

0 commit comments

Comments
 (0)