|
@@ -213,26 +213,26 @@ int main(int argc, char *argv[]) {
|
|
|
// repeats *= 10;
|
|
|
// } while (cpptime_nsec < 1e8 && ctime_nsec < 1e8);
|
|
|
|
|
|
- // nMie(L, x, m, nt, Theta, &Qext, &Qsca, &Qabs, &Qbk, &Qpr, &g, &Albedo, S1, S2);
|
|
|
- // nmie::nMie(L, x, m, nt, Theta, &Qextw, &Qscaw, &Qabsw, &Qbkw, &Qprw, &gw, &Albedow, S1w, S2w);
|
|
|
- // printf("\n");
|
|
|
+ nMie(L, x, m, nt, Theta, &Qext, &Qsca, &Qabs, &Qbk, &Qpr, &g, &Albedo, S1, S2);
|
|
|
+ nmie::nMie(L, x, m, nt, Theta, &Qextw, &Qscaw, &Qabsw, &Qbkw, &Qprw, &gw, &Albedow, S1w, S2w);
|
|
|
+ printf("\n");
|
|
|
|
|
|
- // if (has_comment) {
|
|
|
- // printf("%6s, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e old\n", comment.c_str(), Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo);
|
|
|
- // printf("%6s, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e \n", comment.c_str(), Qextw, Qscaw, Qabsw, Qbkw, Qprw, gw, Albedow);
|
|
|
- // } else {
|
|
|
- // printf("%+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e old\n", Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo);
|
|
|
- // printf("%+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e \n", Qextw, Qscaw, Qabsw, Qbkw, Qprw, gw, Albedow);
|
|
|
- // }
|
|
|
+ if (has_comment) {
|
|
|
+ printf("%6s, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e old\n", comment.c_str(), Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo);
|
|
|
+ printf("%6s, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e \n", comment.c_str(), Qextw, Qscaw, Qabsw, Qbkw, Qprw, gw, Albedow);
|
|
|
+ } else {
|
|
|
+ printf("%+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e old\n", Qext, Qsca, Qabs, Qbk, Qpr, g, Albedo);
|
|
|
+ printf("%+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e, %+.5e \n", Qextw, Qscaw, Qabsw, Qbkw, Qprw, gw, Albedow);
|
|
|
+ }
|
|
|
|
|
|
- // if (nt > 0) {
|
|
|
- // printf(" Theta, S1.r, S1.i, S2.r, S2.i\n");
|
|
|
+ if (nt > 0) {
|
|
|
+ printf(" Theta, S1.r, S1.i, S2.r, S2.i\n");
|
|
|
|
|
|
- // for (i = 0; i < nt; i++) {
|
|
|
- // printf("%6.2f, %+.5e, %+.5e, %+.5e, %+.5e old\n", Theta[i]*180.0/PI, S1[i].real(), S1[i].imag(), S2[i].real(), S2[i].imag());
|
|
|
- // printf("%6.2f, %+.5e, %+.5e, %+.5e, %+.5e \n", Theta[i]*180.0/PI, S1w[i].real(), S1w[i].imag(), S2w[i].real(), S2w[i].imag());
|
|
|
- // }
|
|
|
- // }
|
|
|
+ for (i = 0; i < nt; i++) {
|
|
|
+ printf("%6.2f, %+.5e, %+.5e, %+.5e, %+.5e old\n", Theta[i]*180.0/PI, S1[i].real(), S1[i].imag(), S2[i].real(), S2[i].imag());
|
|
|
+ printf("%6.2f, %+.5e, %+.5e, %+.5e, %+.5e \n", Theta[i]*180.0/PI, S1w[i].real(), S1w[i].imag(), S2w[i].real(), S2w[i].imag());
|
|
|
+ }
|
|
|
+ }
|
|
|
// Field testing
|
|
|
double from_coord = -3.0, to_coord = 3000.0;
|
|
|
//double size=2.0*PI*1.0/6.0;
|