Browse Source

small changes

Konstantin Ladutenko 10 years ago
parent
commit
00b4447922
2 changed files with 3 additions and 2 deletions
  1. 1 1
      compare.cc
  2. 2 1
      nmie.cc

+ 1 - 1
compare.cc

@@ -242,7 +242,7 @@ int main(int argc, char *argv[]) {
       //range.push_back( from_coord + (to_coord-from_coord)/(static_cast<double>(samples)-1)*i );
     //range.push_back(size*0.01);
     //range.push_back(size*0.99999);
-    range.push_back(size/20.0);
+    range.push_back(size/2.0);
     //range.push_back(size*1.00001);
     //range.push_back(3);
     //printf("r=%g  ", range.back());

+ 2 - 1
nmie.cc

@@ -1479,7 +1479,8 @@ namespace nmie {
 
     // Calculate spherical Bessel and Hankel functions and their derivatives
     sbesjh(Rho*ml, jn, jnp, h1n, h1np);
-
+    printf("Rho*ml = %10.5er%+10.5ei\n",std::real(Rho*ml), std::imag(Rho*ml));
+    
     // Calculate angular functions Pi and Tau
     calcPiTau(std::cos(Theta), Pi, Tau);
     printf("Thetd = %g, cos(Theta) = %g\n", Theta, std::cos(Theta));