diff --git a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h index 54a0d49d9be..75cac833160 100644 --- a/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h +++ b/ProcessLib/RichardsMechanics/RichardsMechanicsFEM-impl.h @@ -809,8 +809,8 @@ void RichardsMechanicsLocalAssembler(variables, x_position, t, dt); - std::get(CD) - .viscosity = mu; + *std::get(CD) = + mu; // Swelling and possibly volumetric strain rate update. updateSwellingStressAndVolumetricStrain( @@ -1141,9 +1141,8 @@ void RichardsMechanicsLocalAssembler>(CD) .Ki; double const mu = - std::get( - CD) - .viscosity; + *std::get( + CD); GlobalDimMatrixType const rho_Ki_over_mu = K_intrinsic * rho_LR / mu;