Skip to content

Commit

Permalink
fix typo in Shear negation operator that prevented compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Mandelbaum committed Jun 17, 2012
1 parent 37cc46c commit 6cb46dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/galsim/Shear.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace galsim {
{
double esq = getESq();
double scale = (esq>1.e-6) ? (1.-std::sqrt(1.-esq))/esq : 0.5;
return e>0. ? Shear(-e1*scale, -e2*scale) : Shear(0.0, 0.0);
return esq>0. ? Shear(-e1*scale, -e2*scale) : Shear(0.0, 0.0);
}

// Composition operation: returns ellipticity of
Expand Down

0 comments on commit 6cb46dc

Please sign in to comment.