From e19d8f4a57c56ebce00516174e04946f8af05771 Mon Sep 17 00:00:00 2001 From: klinogrid Date: Tue, 19 Nov 2024 10:58:00 +0000 Subject: [PATCH] minor modification in the include file --- include/gridpp.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/include/gridpp.h b/include/gridpp.h index 846d8da..6d7c432 100644 --- a/include/gridpp.h +++ b/include/gridpp.h @@ -1642,7 +1642,7 @@ namespace gridpp { /** Represents a single point in some coordinate system */ class Point { public: - ~Point(){ std::cout << "\nPoint Destructor executed"; }; + //~Point(){ std::cout << "\nPoint Destructor executed"; }; /** Constructor * @param lat: Latitude (or y) coordinate * @param lon: Longitude (or x) coordinate @@ -1676,7 +1676,7 @@ namespace gridpp { /** Helper class for Grid and Points representing a tree of points */ class KDTree { public: - ~KDTree(){ std::cout << "\nKDTree Destructor executed"; }; + //~KDTree(){ std::cout << "\nKDTree Destructor executed"; }; KDTree(vec lats, vec lons, CoordinateType type=Geodetic); KDTree& operator=(KDTree other); KDTree(const KDTree& other); @@ -1807,7 +1807,7 @@ namespace gridpp { /** Represents a vector of locations and their metadata */ class Points { public: - ~Points(){ std::cout << "\nPoints Destructor executed"; }; + //~Points(){ std::cout << "\nPoints Destructor executed"; }; Points(); /** Initialize a new grid * @param lats: 1D vector of latitudes [degrees] @@ -1903,7 +1903,7 @@ namespace gridpp { /** Represents a 2D grid of locations and their metadata */ class Grid { public: - ~Grid(){ std::cout << "\nGrid Destructor executed"; }; + //~Grid(){ std::cout << "\nGrid Destructor executed"; }; Grid(); /** Initialize a new grid @@ -2003,7 +2003,7 @@ namespace gridpp { class StructureFunction { public: - ~StructureFunction(){ std::cout << "\nStructureFunction Destructor executed"; }; + //~StructureFunction(){ std::cout << "\nStructureFunction Destructor executed"; }; StructureFunction(float localization_distance=0); /** Correlation between two points @@ -2074,7 +2074,7 @@ namespace gridpp { }; class MultipleStructure: public StructureFunction { public: - ~MultipleStructure(){ std::cout << "\nMultipleStructure Destructor executed"; }; + //~MultipleStructure(){ std::cout << "\nMultipleStructure Destructor executed"; }; /** Different structure functions for horizontal, vertical, and land/sea * @param structure_h: Horizontal structure function * @param structure_v: Vertical structure function @@ -2094,8 +2094,8 @@ namespace gridpp { class BarnesStructure: public StructureFunction { public: -// ~BarnesStructure(); - ~BarnesStructure(){ std::cout << "\nBarnesStructure Destructor executed"; }; +// //~BarnesStructure(); + //~BarnesStructure(){ std::cout << "\nBarnesStructure Destructor executed"; }; /** Exponential structure function * @param h: Horizontal decorrelation length >=0 [m] @@ -2129,7 +2129,7 @@ namespace gridpp { /** SOAR structure function based on distance, elevation, and land area fraction */ class SoarStructure: public StructureFunction { public: - ~SoarStructure(){ std::cout << "\nSoarStructure Destructor executed"; }; + //~SoarStructure(){ std::cout << "\nSoarStructure Destructor executed"; }; /** Exponential structure function * @param h: Horizontal decorrelation length >=0 [m] * @param v: Vertical decorrelation length >=0 [m]. If 0, disable decorrelation. @@ -2162,7 +2162,7 @@ namespace gridpp { /** TOAR structure function based on distance, elevation, and land area fraction */ class ToarStructure: public StructureFunction { public: - ~ToarStructure(){ std::cout << "\nToarStructure Destructor executed"; }; + //~ToarStructure(){ std::cout << "\nToarStructure Destructor executed"; }; /** Exponential structure function * @param h: Horizontal decorrelation length >=0 [m] * @param v: Vertical decorrelation length >=0 [m]. If 0, disable decorrelation. @@ -2195,7 +2195,7 @@ namespace gridpp { /** Powerlaw structure function based on distance, elevation, and land area fraction */ class PowerlawStructure: public StructureFunction { public: - ~PowerlawStructure(){ std::cout << "\nPowerlawStructure Destructor executed"; }; + //~PowerlawStructure(){ std::cout << "\nPowerlawStructure Destructor executed"; }; /** Exponential structure function * @param h: Horizontal decorrelation length >=0 [m] * @param v: Vertical decorrelation length >=0 [m]. If 0, disable decorrelation. @@ -2228,7 +2228,7 @@ namespace gridpp { /** Linear structure function based on distance, elevation, and land area fraction */ class LinearStructure: public StructureFunction { public: - ~LinearStructure(){ std::cout << "\nLinearStructure Destructor executed"; }; + //~LinearStructure(){ std::cout << "\nLinearStructure Destructor executed"; }; /** Exponential structure function * @param h: Horizontal decorrelation length >=0 [m] * @param v: Vertical decorrelation length >=0 [m]. If 0, disable decorrelation. @@ -2262,7 +2262,7 @@ namespace gridpp { /** Simple structure function based on distance, elevation, and land area fraction */ class CressmanStructure: public StructureFunction { public: - ~CressmanStructure(){ std::cout << "\nCressmanStructure Destructor executed"; }; + //~CressmanStructure(){ std::cout << "\nCressmanStructure Destructor executed"; }; CressmanStructure(float h, float v=0, float w=0); float corr(const Point& p1, const Point& p2) const; StructureFunctionPtr clone() const; @@ -2274,7 +2274,7 @@ namespace gridpp { class CrossValidation: public StructureFunction { public: - ~CrossValidation(){ std::cout << "\nCrossValidation Destructor executed"; }; + //~CrossValidation(){ std::cout << "\nCrossValidation Destructor executed"; }; /** Structure function for performing cross validation experiments * @param structure: Base structure function to use * @param dist: Force background-to-obs correlation to 0 for points within this distance [m] @@ -2292,7 +2292,7 @@ namespace gridpp { class Transform { public: - ~Transform(){ std::cout << "\nTransform Destructor executed"; }; + //~Transform(){ std::cout << "\nTransform Destructor executed"; }; // Note these cannot be pure virtual, otherwise SWIG does not expose // the vector functions (with the same name) in python. Therefore, make sure these // functions are overloaded in the subclass implementation @@ -2338,7 +2338,7 @@ namespace gridpp { /** Identity transform, i.e. where forward and backward functinos to not modify values */ class Identity : public Transform { public: - ~Identity(){ std::cout << "\nIdentity Destructor executed"; }; + //~Identity(){ std::cout << "\nIdentity Destructor executed"; }; // SWIG requires these "using" statements to enable the vectorized versions in the // subclasses using Transform::forward; @@ -2349,7 +2349,7 @@ namespace gridpp { /** Log transformation: output = log(input) */ class Log : public Transform { public: - ~Log(){ std::cout << "\nLog Destructor executed"; }; + //~Log(){ std::cout << "\nLog Destructor executed"; }; using Transform::forward; using Transform::backward; float forward(float value) const; @@ -2358,7 +2358,7 @@ namespace gridpp { /** Box-Cox transformation */ class BoxCox : public Transform { public: - ~BoxCox(){ std::cout << "\nBoxCox Destructor executed"; }; + //~BoxCox(){ std::cout << "\nBoxCox Destructor executed"; }; /** Initialize Box-Cox transform * @param threshold Box-Cox parameter */ @@ -2373,7 +2373,7 @@ namespace gridpp { /** Started Box-Cox transformation. No transformation between 0 and scaling_factor, then Box-Cox (like) transformation with parameter equal to threshold */ class StartedBoxCox : public Transform { public: - ~StartedBoxCox(){ std::cout << "\nStartedBoxCox Destructor executed"; }; + //~StartedBoxCox(){ std::cout << "\nStartedBoxCox Destructor executed"; }; /** Initialize started Box-Cox transform * @param threshold started Box-Cox parameter */ @@ -2390,7 +2390,7 @@ namespace gridpp { * extracts the cdf from a standard normal distribution. */ class Gamma : public Transform { public: - ~Gamma(){ std::cout << "\nGamma Destructor executed"; }; + //~Gamma(){ std::cout << "\nGamma Destructor executed"; }; /** Initialize Gamma transform * @param shape Shape parameter * @param scale Scale parameter