Skip to content
Snippets Groups Projects
Commit 499906b9 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Bug fix: multiply derivative by coefficient as well

parent 29905507
No related branches found
No related tags found
No related merge requests found
......@@ -55,14 +55,14 @@ class RuinaFunction : public NiceFunction {
if (eta * s <= rho)
return 0;
return normalStress * (a * std::log(s) + mu);
return coefficient * normalStress * (a * std::log(s) + mu);
}
double virtual rightDifferential(double s) const {
if (eta * s <= rho)
return 0;
return normalStress * (a * std::log(s) + mu);
return coefficient * normalStress * (a * std::log(s) + mu);
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment