From dec385da7bb70866c6871244db5150c0da6b5f15 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Wed, 7 Aug 2024 14:31:15 +0200 Subject: [PATCH] Reorder initialization --- source/material_model/rheology/composite_visco_plastic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/material_model/rheology/composite_visco_plastic.cc b/source/material_model/rheology/composite_visco_plastic.cc index ab020ed431b..4ef2aa65c71 100644 --- a/source/material_model/rheology/composite_visco_plastic.cc +++ b/source/material_model/rheology/composite_visco_plastic.cc @@ -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.