Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder initialization of partial strain rates in composite visco plastic #6004

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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