Skip to content

Commit

Permalink
Allow dirichlet functions to return NaN
Browse files Browse the repository at this point in the history
Functionality like this was requested long ago; if I'd known it would
be a one-line change I would have implemented it then.
  • Loading branch information
roystgnr committed Apr 22, 2014
1 parent 1ea7b56 commit 313be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/dof_map_constraints.C
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ private:
for (unsigned int i = 0; i < n_dofs; i++)
{
DofConstraintRow empty_row;
if (dof_is_fixed[i])
if (dof_is_fixed[i] && !std::isnan(Ue(i)))
add_fn (dof_indices[i], empty_row, Ue(i));
}
}
Expand Down

0 comments on commit 313be2f

Please sign in to comment.