Skip to content

Commit

Permalink
Fix CDTauMaterial
Browse files Browse the repository at this point in the history
  • Loading branch information
smpark7 committed Jan 10, 2024
1 parent c4dc40c commit 32f95da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/materials/CDTauMaterial.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ CDTauMaterialTempl<T>::computeHMin()
for (const auto & disp_num : _displacements)
{
diff(dimension)
.derivatives()[disp_num * _fe_problem.getNonlinearSystemBase().getMaxVarNDofsPerElem() +
.derivatives()[disp_num * _fe_problem.getNonlinearSystemBase(0).getMaxVarNDofsPerElem() +
n_outer] = 1.;
diff(dimension++)
.derivatives()[disp_num * _fe_problem.getNonlinearSystemBase().getMaxVarNDofsPerElem() +
.derivatives()[disp_num * _fe_problem.getNonlinearSystemBase(0).getMaxVarNDofsPerElem() +
n_inner] = -1.;
}

_hmin = std::max(_hmin, diff.norm_sq());
_hmin = std::min(_hmin, diff.norm_sq());
}

_hmin = std::sqrt(_hmin);
Expand Down

0 comments on commit 32f95da

Please sign in to comment.