Skip to content

Commit

Permalink
typo in float comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Nov 9, 2018
1 parent d99e49c commit fe8ea1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void *fields::get_eigenmode(double omega_src,
// k-vector to be the (real part of the) bloch vector in that direction.
vec kpoint(_kpoint);
LOOP_OVER_DIRECTIONS(v.dim, dd)
if (float(eig_vol.in_direction(dd) == float(v.in_direction(dd))))
if (float(eig_vol.in_direction(dd)) == float(v.in_direction(dd)))
if (boundaries[High][dd]==Periodic && boundaries[Low][dd]==Periodic)
kpoint.set_direction(dd, real(k[dd]));

Expand Down

0 comments on commit fe8ea1f

Please sign in to comment.