Skip to content
Snippets Groups Projects
Commit aaa4629b authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[facet][mpfa][fix] fix additional derivatives for numEq > 1

parent 2fbb615b
No related branches found
No related tags found
1 merge request!1550[facet][mpfa][fix] fix additional derivatives for numEq > 1
...@@ -426,7 +426,7 @@ private: ...@@ -426,7 +426,7 @@ private:
static const int numDiffMethod = getParamFromGroup<int>(this->problem(lowDimId).paramGroup(), "Assembly.NumericDifferenceMethod"); static const int numDiffMethod = getParamFromGroup<int>(this->problem(lowDimId).paramGroup(), "Assembly.NumericDifferenceMethod");
static const NumericEpsilon< Scalar<lowDimId>, numEq > eps{this->problem(lowDimId).paramGroup()}; static const NumericEpsilon< Scalar<lowDimId>, numEq > eps{this->problem(lowDimId).paramGroup()};
NumericDifferentiation::partialDerivative(evalResiduals, origPriVars[pvIdx], partialDerivs, NumericDifferentiation::partialDerivative(evalResiduals, origPriVars[pvIdx], partialDerivs,
origResidual, eps(origPriVars, pvIdx), numDiffMethod); origResidual, eps(origPriVars[pvIdx], pvIdx), numDiffMethod);
// update the global stiffness matrix with the current partial derivatives // update the global stiffness matrix with the current partial derivatives
// A[i][col][eqIdx][pvIdx] is the rate of change of the residual of equation // A[i][col][eqIdx][pvIdx] is the rate of change of the residual of equation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment