From c416d34ac227f0c44f78482aa60b9acbc74f25e2 Mon Sep 17 00:00:00 2001 From: Klaus <klaus.boehnlein@tu-dresden.de> Date: Tue, 30 Aug 2022 22:19:11 +0200 Subject: [PATCH] Add dune-sequential.opts --- dune-sequential.opts | 2 ++ dune/microstructure/materialDefinitions.hh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 dune-sequential.opts diff --git a/dune-sequential.opts b/dune-sequential.opts new file mode 100755 index 00000000..6b5af3f7 --- /dev/null +++ b/dune-sequential.opts @@ -0,0 +1,2 @@ +# set flags for CMake: +CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='-g -fdiagnostics-color=always -Wall -fmax-errors=2 -DHAVE_CSTDDEF' -DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE -DUG_ENABLE_PARALLEL=false -DCMAKE_BUILD_TYPE=Debug" diff --git a/dune/microstructure/materialDefinitions.hh b/dune/microstructure/materialDefinitions.hh index 307de33c..f4e6ee14 100644 --- a/dune/microstructure/materialDefinitions.hh +++ b/dune/microstructure/materialDefinitions.hh @@ -35,7 +35,7 @@ using VectorRT = FieldVector< double, 3>; const FieldVector<double,3> mu = {80.0, 80.0, 60.0}; const FieldVector<double,3> lambda = {80.0, 80.0, 25.0}; if (phase == 1) - return 2.0 * mu[0] * sym(G) + lambda[0] * trace(sym(G)) * Id(); //#Phase1 + return 2.0 * mu[0] * sym(G) + lambda[0] * trace(sym(G)) * Id(); //#Phase1 //Isotrop(mu,lambda) else if (phase == 2) return 2.0 * mu[1] * sym(G) + lambda[1] * trace(sym(G)) * Id(); //#Phase2 else -- GitLab