Skip to content

Commit

Permalink
Change the density tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
tianchiTJ committed Nov 3, 2020
1 parent 1b34a27 commit ad851bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/node.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ void mpm::Node<Tdim, Tdof, Tnphases>::compute_density() {
density_(phase) = mass_(phase) / volume_(phase);

// Check to see if value is below threshold
if (std::abs(density_(phase)) < 1.E-15) density_(phase) = 0.;
if (std::abs(density_(phase)) < tolerance) density_(phase) = 0.;
}
}
}
Expand Down

0 comments on commit ad851bf

Please sign in to comment.