Skip to content

Commit

Permalink
Merge pull request #6004 from gassmoeller/initialize_partial_strain_r…
Browse files Browse the repository at this point in the history
…ates

Reorder initialization of partial strain rates in composite visco plastic
  • Loading branch information
bobmyhill authored Aug 11, 2024
2 parents c331e00 + dec385d commit 798c579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/material_model/rheology/composite_visco_plastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ namespace aspect
double viscosity = 0.;

// Make sure partial_strain_rates is filled with zeros and is the right length
partial_strain_rates.resize(n_decomposed_strain_rates);
std::fill(partial_strain_rates.begin(), partial_strain_rates.end(), 0);
partial_strain_rates.resize(n_decomposed_strain_rates, 0.);

// Compute the viscosity and the partial strain rates
// according to the isostress or isostrain viscosity averaging scheme.
Expand Down

0 comments on commit 798c579

Please sign in to comment.