Skip to content

Commit

Permalink
Adding historic test case using prrng (in Python for readability) (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored Mar 14, 2022
1 parent 0f3d820 commit d2320a1
Show file tree
Hide file tree
Showing 3 changed files with 2,120 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:
environment-name: myenv
cache-env: true
extra-specs: |
python-gmatelastoplasticqpot
python-gmattensor
python-goosefem
python-gmatelastoplasticqpot
python-prrng
sel(linux): cxx-compiler
sel(win): clang_win-64
Expand All @@ -49,6 +50,7 @@ jobs:
run: |
python basic.py
python Generic2d.py
python Generic2d_historic.py
python UniformMultiLayerIndividualDrive2d.py
python UniformMultiLayerLeverDrive2d.py
python UniformSingleLayer2d.py
Expand Down
2 changes: 1 addition & 1 deletion tests/Generic2d_historic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ TEST_CASE("FrictionQPotFEM::Generic2d_historic", "Generic2d.h")
xt::xtensor<double, 2> Sigbar = xt::average(full.Sig(), dV, {0, 1});

compute_Eps(inc) = GMatElastoPlasticQPot::Cartesian2d::Epsd(Epsbar)();
compute_Sig(inc) = GMatElastoPlasticQPot::Cartesian2d::Epsd(Sigbar)();
compute_Sig(inc) = GMatElastoPlasticQPot::Cartesian2d::Epsd(Sigbar)(); // here is a typo
}

REQUIRE(xt::allclose(compute_Eps, check_Eps));
Expand Down
Loading

0 comments on commit d2320a1

Please sign in to comment.