Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Resolve test issue #284

Merged
merged 2 commits into from
Apr 25, 2024
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 .github/workflows/integrationtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
if: |
github.event_name == 'push' ||
( github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'integration' ))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really? That's the difference? I'm starting to hate yaml now

Copy link
Contributor

@mbruns91 mbruns91 Apr 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it is really a yaml issue. I think is more likely the parser reading this file is a bit over-sensitive to newlines and stuff. I guess you need a newline to correctly close the multiline conditional.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, I changed the indentation... I don't know, if you used <tab> for indenting or spaces. I use spaces and only after re-indenting, my editor correctly understood what to highlight.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
18 changes: 8 additions & 10 deletions tests/integration/damask/test_backward_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,12 @@ def test_elastoplasticity_isotropic(self):
type="isotropic",
dot_gamma_0=0.001,
n=20.0,
xi_0=0.3e6,
xi_inf=0.6e6,
xi_0=0.85e6,
xi_inf=1.6e6,
a=2.0,
h_0=1.0e6, # hardening modulus
h_0=5.0e6, # hardening modulus
M=1.0,
h=1.0,
dilatation=True,
output=["xi"],
)
phase = self.project.continuum.damask.Phase(
composition="Aluminum",
Expand All @@ -173,19 +171,19 @@ def test_elastoplasticity_isotropic(self):
load_step = [
{
"mech_bc_dict": {
"dot_F": [1e-2, 0, 0, 0, "x", 0, 0, 0, "x"],
"dot_F": [1e-3, 0, 0, 0, "x", 0, 0, 0, "x"],
"P": ["x", "x", "x", "x", 0, "x", "x", "x", 0],
},
"discretization": {"t": 20.0, "N": 100},
"additional": {"f_out": 5},
"discretization": {"t": 10.0, "N": 40},
"additional": {"f_out": 4},
},
{
"mech_bc_dict": {
"dot_F": [1e-2, 0, 0, 0, "x", 0, 0, 0, "x"],
"P": ["x", "x", "x", "x", 0, "x", "x", "x", 0],
},
"discretization": {"t": 60.0, "N": 200},
"additional": {"f_out": 5},
"discretization": {"t": 60.0, "N": 60},
"additional": {"f_out": 4},
},
]
solver = job.list_solvers()[0] # choose the mechanis solver
Expand Down
Loading