Browse Source

API change to avoid typo SetLayerSize() with SetLayersSize()

Konstantin Ladutenko 10 years ago
parent
commit
db8dcdeebd
2 changed files with 4 additions and 4 deletions
  1. 2 2
      nmie.cc
  2. 2 2
      nmie.h

+ 2 - 2
nmie.cc

@@ -421,7 +421,7 @@ namespace nmie {
   // ********************************************************************** //
   // Modify size of all layers                                             //
   // ********************************************************************** //
-  void MultiLayerMie::SetLayersSize(const std::vector<double>& layer_size) {
+  void MultiLayerMie::SetaAllLayersSize(const std::vector<double>& layer_size) {
     isExpCoeffsCalc_ = false;
     isScaCoeffsCalc_ = false;
     isMieCalculated_ = false;
@@ -442,7 +442,7 @@ namespace nmie {
   // ********************************************************************** //
   // Modify refractive index of all layers                                  //
   // ********************************************************************** //
-  void MultiLayerMie::SetLayersIndex(const std::vector< std::complex<double> >& index) {
+  void MultiLayerMie::SetAllLayersIndex(const std::vector< std::complex<double> >& index) {
     isExpCoeffsCalc_ = false;
     isScaCoeffsCalc_ = false;
     isMieCalculated_ = false;

+ 2 - 2
nmie.h

@@ -69,9 +69,9 @@ namespace nmie {
     // Modify refractive index of the layer
     void SetLayerIndex(std::vector< std::complex<double> > layer_index, int layer_position = 0);
     // Modify size of all layers
-    void SetLayersSize(const std::vector<double>& layer_size);
+    void SetAllLayersSize(const std::vector<double>& layer_size);
     // Modify refractive index of all layers
-    void SetLayersIndex(const std::vector< std::complex<double> >& index);
+    void SetAllLayersIndex(const std::vector< std::complex<double> >& index);
     // Modify scattering (theta) angles
     void SetAngles(const std::vector<double>& angles);
     // Modify coordinates for field calculation