Skip to content

Commit

Permalink
Reorder initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gassmoeller committed Aug 7, 2024
1 parent e8f3a93 commit dec385d
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 dec385d

Please sign in to comment.