Konstantin Ladutenko 8 lat temu
rodzic
commit
813b7a037d
2 zmienionych plików z 6 dodań i 6 usunięć
  1. 5 5
      src/nmie.cc
  2. 1 1
      src/py_nmie.cc

+ 5 - 5
src/nmie.cc

@@ -53,7 +53,7 @@
 namespace nmie {
   //typedef float FloatType;
   //typedef double FloatType;
-  typedef boost::multiprecision::cpp_bin_float_50 FloatType;
+  typedef boost::multiprecision::cpp_bin_float_100 FloatType;
   
   //**********************************************************************************//
   // This function emulates a C call to calculate the scattering coefficients         //
@@ -146,10 +146,10 @@ namespace nmie {
       ml_mie.RunMieCalculation();
 
       std::cout
-	<< std::setprecision(std::numeric_limits<FloatType>::digits10)
-	<< "Qext = "
-	<< ml_mie.GetQext()
-	<< std::endl;
+      	<< std::setprecision(std::numeric_limits<FloatType>::digits10)
+      	<< "Qext = "
+      	<< ml_mie.GetQext()
+      	<< std::endl;
       
       *Qext = static_cast<double>(ml_mie.GetQext());
       *Qsca = static_cast<double>(ml_mie.GetQsca());

+ 1 - 1
src/py_nmie.cc

@@ -28,7 +28,7 @@
 #include <math.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include "nmie.h"
+#include "nmie.hpp"
 #include "py_nmie.h"
 
 // Same as ScattCoeffs in 'nmie.h' but uses double arrays to return the results (useful for python).