Skip to content

Commit

Permalink
Address two review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anne-glerum committed Sep 27, 2023
1 parent 52b6a0e commit 7c6fbf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions source/heating_model/shear_heating.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ namespace aspect
}

const MaterialModel::ElasticAdditionalOutputs<dim> *elastic_out = material_model_outputs.template get_additional_output<MaterialModel::ElasticAdditionalOutputs<dim>>();
AssertThrow(elastic_out != nullptr, ExcMessage("ElasticAdditionalOutputs are requested, but have not been computed."));

const double shear_modulus = elastic_out->elastic_shear_moduli[q];

Expand Down
3 changes: 0 additions & 3 deletions source/material_model/visco_plastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ namespace aspect

if (this->get_parameters().enable_elasticity)
{
// TODO check that in.requests_property(MaterialProperties::viscosity) is true,
// because we need the viscosities to fill the outputs below

// Fill the force outputs with the body force term for the RHS.
rheology->elastic_rheology.fill_elastic_force_outputs(in, average_elastic_shear_moduli, out);
// Fill the reaction terms that account for the rotation of the stresses.
Expand Down

0 comments on commit 7c6fbf5

Please sign in to comment.