Skip to content

Commit 26cfcc0

Browse files
committed
removed superfluous docstrings
1 parent fb9cb6d commit 26cfcc0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

source/material_model/rheology/diffusion_dislocation.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,41 +97,34 @@ namespace aspect
9797

9898
SUNDIALS::KINSOL<Vector<double>> nonlinear_solver(additional_data);
9999

100-
// Declare lambda functions
101-
// (i) resize a vector to the correct size
102100
nonlinear_solver.reinit_vector = [&](Vector<double> &x)
103101
{
104102
x.reinit(1);
105103
};
106104

107-
// (ii) compute the residual vector
108105
nonlinear_solver.residual =
109106
[&](const Vector<double> &evaluation_point,
110107
Vector<double> &residual)
111108
{
112109
compute_log_strain_rate_residual(evaluation_point, residual, pressure, temperature, diffusion_creep_parameters, dislocation_creep_parameters, log_edot_ii);
113110
};
114111

115-
// (iii) compute the Jacobian matrix and factorization
116112
nonlinear_solver.setup_jacobian =
117113
[&](const Vector<double> &current_u,
118114
const Vector<double> & /*current_f*/)
119115
{
120116
compute_log_strain_rate_deriv(current_u, pressure, temperature, diffusion_creep_parameters, dislocation_creep_parameters, log_strain_rate_deriv);
121117
};
122118

123-
// (iv) solve a linear system with the Jacobian.
124119
nonlinear_solver.solve_with_jacobian = [&](const Vector<double> &rhs,
125120
Vector<double> &solution,
126121
const double /*tolerance*/)
127122
{
128123
solution(0) -= rhs(0)/log_strain_rate_deriv;
129124
};
130125

131-
// solve the problem
132126
nonlinear_solver.solve(log_stress_ii);
133127

134-
// The effective viscosity, with minimum and maximum bounds
135128
stress_ii = std::exp(log_stress_ii[0]);
136129
composition_viscosities[j] = std::min(std::max(stress_ii/edot_ii/2, minimum_viscosity), maximum_viscosity);
137130
}

0 commit comments

Comments
 (0)