Skip to content

Commit 25fbca9

Browse files
committed
Update to work with testing.
1 parent 0c72728 commit 25fbca9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/python/dof_constraints.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,10 @@
220220
problem.Solve()
221221

222222
# Export results
223+
if not os.path.exists('./results'):
224+
os.makedirs('./results')
223225
fields = iron.Fields()
224226
fields.CreateRegion(region)
225-
fields.NodesExport("./Cantilever", "FORTRAN")
226-
fields.ElementsExport("./Cantilever", "FORTRAN")
227+
fields.NodesExport("./results/Cantilever", "FORTRAN")
228+
fields.ElementsExport("./results/Cantilever", "FORTRAN")
227229
fields.Finalise()

0 commit comments

Comments
 (0)