From bad6d06fafb12018e81d012e80139a0307a0912c Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:03:00 +0100 Subject: [PATCH] fix: tests --- tests/test_post.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_post.py b/tests/test_post.py index 23b9beb94c..8e8f2289a4 100644 --- a/tests/test_post.py +++ b/tests/test_post.py @@ -776,6 +776,11 @@ def resume(mapdl, plastic_solve): mapdl.post1() mapdl.set(1, 2) + # necessary for any prnsol printouts + mapdl.header("off", "off", "off", "off", "off", "off") + nsigfig = 10 + mapdl.format("", "E", nsigfig + 9, nsigfig) + @staticmethod @pytest.mark.parametrize("comp", COMPONENT_STRESS_TYPE) def test_nodal_plastic_component_strain(mapdl, resume, comp): @@ -1168,15 +1173,14 @@ def resume(mapdl, contact_solve): mapdl.allsel() mapdl.set("last") - @staticmethod - def test_nodal_contact_friction_stress(mapdl, resume): - # Format tables. - mapdl.post1() mapdl.header("OFF", "OFF", "OFF", "OFF", "OFF", "OFF") nsigfig = 10 mapdl.format("", "E", nsigfig + 9, nsigfig) mapdl.page(1e9, "", -1, 240) + @staticmethod + def test_nodal_contact_friction_stress(mapdl, resume): + # Format tables. prnsol = mapdl.prnsol("CONT") array = np.genfromtxt(prnsol.splitlines(), skip_header=1) sfric_prn = array[:, 4]