Skip to content

Commit

Permalink
Revert to divide by zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
klywang committed Dec 14, 2021
1 parent 4ef5742 commit 3c152ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/order/HexaticTranslational.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void HexaticTranslational<T>::computeGeneral(Func func, const freud::locality::N
{
if (total_weight == 0.)
{
m_psi_array[i] = std::nanf;
m_psi_array[i] /= std::complex<float>(0.);
}
else
{
Expand Down

0 comments on commit 3c152ae

Please sign in to comment.