File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
source/simulator/assemblers Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ namespace aspect
466466 if (introspection.is_stokes_component (index_direction+1 ))
467467 data.local_rhs (i) += (
468468 - pressure_scaling
469- * (prescribed_dilation->dilation_rhs_term [q][index_direction ] -
469+ * (prescribed_dilation->dilation_rhs_term [index_direction][q ] -
470470 prescribed_dilation->dilation_lhs_term [q] *
471471 scratch.material_model_inputs .pressure [q])
472472 * scratch.phi_p [i]
@@ -669,8 +669,10 @@ namespace aspect
669669 Assert (!this ->get_parameters ().enable_prescribed_dilation
670670 ||
671671 (outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_lhs_term .size () == n_points &&
672- outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_rhs_term .size () == n_points
673- ),
672+ outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_rhs_term .size () == dim &&
673+ outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_rhs_term [0 ].size () == n_points &&
674+ outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_rhs_term [1 ].size () == n_points &&
675+ (dim == 2 || (dim == 3 && outputs.template get_additional_output_object <MaterialModel::PrescribedPlasticDilation<dim>>()->dilation_rhs_term [2 ].size () == n_points))),
674676 ExcInternalError ());
675677
676678 if (this ->get_newton_handler ().parameters .newton_derivative_scaling_factor != 0 )
Original file line number Diff line number Diff line change @@ -207,11 +207,11 @@ namespace aspect
207207 }
208208 if (prescribed_dilation)
209209 {
210- prescribed_dilation->dilation_lhs_term [i] = 0 ;
211210 prescribed_dilation->dilation_rhs_term [0 ][i] = x;
212211 prescribed_dilation->dilation_rhs_term [1 ][i] = x;
213212 if (dim == 3 )
214213 prescribed_dilation->dilation_rhs_term [2 ][i] = x;
214+ prescribed_dilation->dilation_lhs_term [i] = 0 ;
215215 }
216216
217217 }
You can’t perform that action at this time.
0 commit comments