fix conversion bug when input is in radians

This commit is contained in:
Axel Kohlmeyer
2024-02-26 07:54:25 -05:00
parent 5aae41a08c
commit 2bc5a04214

View File

@ -261,7 +261,7 @@ void ComputeXRD::init()
double ang = 0.0; double ang = 0.0;
double convf = 360 / MY_PI; double convf = 360 / MY_PI;
if (radflag ==1) convf = 1; if (radflag == 1) convf = 2;
int n = 0; int n = 0;
for (int m = 0; m < mmax; m++) { for (int m = 0; m < mmax; m++) {