Skip to content

Commit

Permalink
Make sure ellipse ratio is 1.56 to be consistent with GUI #144
Browse files Browse the repository at this point in the history
  • Loading branch information
cbuahin committed Jan 11, 2024
1 parent 059d342 commit d93cb32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/solver/xsect.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,7 @@ int xsect_setParams(TXsect *xsect, int type, double p[], double ucf)
xsect->yFull = p[0]/ucf;

// --- length of major axis
if ( p[1] < 0.0 ) return FALSE;
xsect->wMax = p[1]/ucf;
xsect->wMax = xsect->yFull * 1.56;
xsect->aFull = 0.8117 * xsect->yFull * xsect->wMax;
xsect->rFull = 0.2448 * sqrt(xsect->yFull * xsect->wMax);
}
Expand Down Expand Up @@ -600,7 +599,7 @@ int xsect_setParams(TXsect *xsect, int type, double p[], double ucf)

// --- length of minor axis
xsect->yFull = p[0]/ucf;
xsect->wMax = p[1]/ucf;
xsect->wMax = xsect->yFull / 1.56;
xsect->aFull = 0.8117 * xsect->yFull * xsect->wMax;
xsect->rFull = 0.2448 * sqrt(xsect->yFull * xsect->wMax);
}
Expand Down

0 comments on commit d93cb32

Please sign in to comment.