File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -1000,7 +1000,7 @@ namespace aspect
1000
1000
1001
1001
namespace
1002
1002
{
1003
- std::vector<std::string> make_prescribed_dilation_outputs_names ()
1003
+ std::vector<std::string> make_prescribed_dilation_outputs_names (int dim )
1004
1004
{
1005
1005
std::vector<std::string> names;
1006
1006
names.emplace_back (" dilation_lhs_term" );
@@ -1016,9 +1016,9 @@ namespace aspect
1016
1016
1017
1017
template <int dim>
1018
1018
PrescribedPlasticDilation<dim>::PrescribedPlasticDilation (const unsigned int n_points)
1019
- : NamedAdditionalMaterialOutputs<dim>(make_prescribed_dilation_outputs_names()),
1019
+ : NamedAdditionalMaterialOutputs<dim>(make_prescribed_dilation_outputs_names(dim )),
1020
1020
dilation_lhs_term (n_points, numbers::signaling_nan<double >()),
1021
- dilation (dim, std::vector<double >(n_points, numbers::signaling_nan<double >()))
1021
+ dilation_rhs_term (dim, std::vector<double >(n_points, numbers::signaling_nan<double >()))
1022
1022
{}
1023
1023
1024
1024
Original file line number Diff line number Diff line change @@ -291,10 +291,11 @@ namespace aspect
291
291
= MaterialUtilities::average_value (volume_fractions,
292
292
isostrain_viscosities.dilation_lhs_terms ,
293
293
MaterialUtilities::arithmetic);
294
- plastic_dilation->dilation_rhs_term [i]
295
- = MaterialUtilities::average_value (volume_fractions,
296
- isostrain_viscosities.dilation_rhs_terms ,
297
- MaterialUtilities::arithmetic);
294
+ for (unsigned int dim_i = 0 ; dim_i < dim; ++dim_i)
295
+ plastic_dilation->dilation_rhs_term [dim_i][i]
296
+ = MaterialUtilities::average_value (volume_fractions,
297
+ isostrain_viscosities.dilation_rhs_terms ,
298
+ MaterialUtilities::arithmetic);
298
299
}
299
300
}
300
301
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ namespace aspect
436
436
437
437
const double JxW = scratch.finite_element_values .JxW (q);
438
438
const double pressure_scaling = this ->get_pressure_scaling ();
439
+ bool material_model_is_compressible = (this ->get_material_model ().is_compressible ());
439
440
440
441
// first assemble the rhs
441
442
for (unsigned int i=0 ; i<stokes_dofs_per_cell; ++i)
@@ -470,7 +471,7 @@ namespace aspect
470
471
- pressure_scaling
471
472
* (prescribed_dilation->dilation_rhs_term [index_direction][q] -
472
473
prescribed_dilation->dilation_lhs_term [q] *
473
- scrasch .material_model_inputs .pressure [q])
474
+ scratch .material_model_inputs .pressure [q])
474
475
* scratch.phi_p [i]
475
476
) * JxW;
476
477
}
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ namespace aspect
436
436
const double density = scratch.material_model_outputs .densities [q];
437
437
const double JxW = scratch.finite_element_values .JxW (q);
438
438
439
+ bool material_model_is_compressible = (this ->get_material_model ().is_compressible ());
439
440
for (unsigned int i=0 ; i<stokes_dofs_per_cell; ++i)
440
441
{
441
442
data.local_rhs (i) += (density * gravity * scratch.phi_u [i])
You can’t perform that action at this time.
0 commit comments