Skip to content

Commit

Permalink
Merge pull request #5528 from anne-glerum/set_face_properties_only_fo…
Browse files Browse the repository at this point in the history
…r_fem

Only set face properties for advection assemblers when method is fem
  • Loading branch information
gassmoeller authored Jun 5, 2024
2 parents 90c3f0a + c3ae449 commit a0c7101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/simulator/assembly.cc
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ namespace aspect
assemblers->advection_system_assembler_on_face_properties[0].need_face_finite_element_evaluation = true;
}

if (i > 0 && parameters.use_discontinuous_composition_discretization)
if (i > 0 && parameters.use_discontinuous_composition_discretization
&& parameters.compositional_field_methods[i-1] == Parameters<dim>::AdvectionFieldMethod::fem_field)
{
// TODO should these only be set when method is fem_field?
assemblers->advection_system_assembler_on_face_properties[i].need_face_material_model_data = true;
Expand Down

0 comments on commit a0c7101

Please sign in to comment.