more consistent formatting of for/while loops and if statements

This commit is contained in:
Axel Kohlmeyer
2020-12-30 09:01:37 -05:00
parent eef28b58ab
commit 382ade15fe
345 changed files with 4259 additions and 4259 deletions

View File

@ -260,8 +260,8 @@ inline void ComputeHexOrderAtom::calc_qn_complex(double delx, double dely, doubl
inline void ComputeHexOrderAtom::calc_qn_trig(double delx, double dely, double &u, double &v) {
double ntheta;
if(fabs(delx) <= MY_EPSILON) {
if(dely > 0.0) ntheta = ndegree * MY_PI / 2.0;
if (fabs(delx) <= MY_EPSILON) {
if (dely > 0.0) ntheta = ndegree * MY_PI / 2.0;
else ntheta = ndegree * 3.0 * MY_PI / 2.0;
} else ntheta = ndegree * atan(dely / delx);
u = cos(ntheta);