Skip to content

Commit 1a16ed2

Browse files
committed
replaced hard coded damper index
1 parent aa2b5c7 commit 1a16ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/material_model/rheology/composite_visco_plastic.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ namespace aspect
657657
// arranged in parallel with the viscoplastic elements.
658658
// The total stress is equal to the sum of the viscoplastic stress and
659659
// damper stress.
660-
const double damper_stress = 2. * damper_viscosity * (edot_ii - partial_strain_rates[4]);
660+
const double damper_stress = 2. * damper_viscosity * (edot_ii - partial_strain_rates[isostrain_damper_strain_rate_index]);
661661
const double total_stress = viscoplastic_stress + damper_stress;
662662

663663
// 6) Return the effective creep viscosity using the total stress

0 commit comments

Comments
 (0)