Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/3747.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: do all the cleaning commands before cleaning the database, so we avoid having to issue `/POST1`.
18 changes: 4 additions & 14 deletions tests/test_xpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def create_cube(self, mapdl):
mapdl.clear()
mapdl.prep7()

# Delete files
if "cube_solve_xpl" in mapdl.list_files():
mapdl.slashdelete("cube_solve_xpl.db")

# set up the full file
mapdl.block(0, 1, 0, 1, 0, 1)
mapdl.et(1, 186)
Expand All @@ -72,20 +76,6 @@ def create_cube(self, mapdl):
mapdl.esize(0.5)
mapdl.vmesh("all")

# Delete files
self.full_file = mapdl.jobname + ".full"
if "full.file" in mapdl.list_files():
mapdl.slashdelete("full.file")

if mapdl.result_file in mapdl.list_files():
mapdl.slashdelete(mapdl.result_file)

if mapdl.result_file in mapdl.list_files():
mapdl.slashdelete(mapdl.result_file)

if "cube_solve_xpl" in mapdl.list_files():
mapdl.slashdelete("cube_solve_xpl.db")

# solve first 10 non-trivial modes
mapdl.modal_analysis(nmode=10, freqb=1)
mapdl.save("cube_solve_xpl", "db", slab="all")
Expand Down