diff --git a/src/external/libGapIntegrals/TGapIntegrals.cpp b/src/external/libGapIntegrals/TGapIntegrals.cpp index 36c06122..8861700a 100644 --- a/src/external/libGapIntegrals/TGapIntegrals.cpp +++ b/src/external/libGapIntegrals/TGapIntegrals.cpp @@ -72,9 +72,7 @@ ClassImp(TFilmMagnetizationDWave) *
s wave gap integral
*/
TGapSWave::TGapSWave() {
- TGapIntegral *gapint = new TGapIntegral();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique point p wave gap integral
*/
TGapPointPWave::TGapPointPWave() {
- TPointPWaveGapIntegralCuhre *gapint = new TPointPWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique line p wave gap integral
*/
TGapLinePWave::TGapLinePWave() {
- TLinePWaveGapIntegralCuhre *gapint = new TLinePWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapDWave::TGapDWave() {
- TDWaveGapIntegralCuhre *gapint = new TDWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapCosSqDWave::TGapCosSqDWave() {
- TCosSqDWaveGapIntegralCuhre *gapint = new TCosSqDWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapSinSqDWave::TGapSinSqDWave() {
- TSinSqDWaveGapIntegralCuhre *gapint = new TSinSqDWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapAnSWave::TGapAnSWave() {
- TAnSWaveGapIntegralCuhre *gapint = new TAnSWaveGapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapNonMonDWave1::TGapNonMonDWave1() {
- TNonMonDWave1GapIntegralCuhre *gapint = new TNonMonDWave1GapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TGapNonMonDWave2::TGapNonMonDWave2() {
- TNonMonDWave2GapIntegralCuhre *gapint = new TNonMonDWave2GapIntegralCuhre();
- fGapIntegral = gapint;
- gapint = nullptr;
+ fGapIntegral = std::make_unique
*/
TLambdaSWave::TLambdaSWave() {
- fLambdaInvSq = new TGapSWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaPointPWave::TLambdaPointPWave() {
- fLambdaInvSq = new TGapPointPWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaLinePWave::TLambdaLinePWave() {
- fLambdaInvSq = new TGapLinePWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaDWave::TLambdaDWave() {
- fLambdaInvSq = new TGapDWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaAnSWave::TLambdaAnSWave() {
- fLambdaInvSq = new TGapAnSWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaNonMonDWave1::TLambdaNonMonDWave1() {
- fLambdaInvSq = new TGapNonMonDWave1();
+ fLambdaInvSq = std::make_unique
*/
TLambdaNonMonDWave2::TLambdaNonMonDWave2() {
- fLambdaInvSq = new TGapNonMonDWave2();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvSWave::TLambdaInvSWave() {
- fLambdaInvSq = new TGapSWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvPointPWave::TLambdaInvPointPWave() {
- fLambdaInvSq = new TGapPointPWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvLinePWave::TLambdaInvLinePWave() {
- fLambdaInvSq = new TGapLinePWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvDWave::TLambdaInvDWave() {
- fLambdaInvSq = new TGapDWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvAnSWave::TLambdaInvAnSWave() {
- fLambdaInvSq = new TGapAnSWave();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvNonMonDWave1::TLambdaInvNonMonDWave1() {
- fLambdaInvSq = new TGapNonMonDWave1();
+ fLambdaInvSq = std::make_unique
*/
TLambdaInvNonMonDWave2::TLambdaInvNonMonDWave2() {
- fLambdaInvSq = new TGapNonMonDWave2();
+ fLambdaInvSq = std::make_unique
*/
TGapSWave::~TGapSWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -343,9 +322,6 @@ TGapSWave::~TGapSWave() {
*
*/
TGapPointPWave::~TGapPointPWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -358,9 +334,6 @@ TGapPointPWave::~TGapPointPWave() {
*
*/
TGapLinePWave::~TGapLinePWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -373,9 +346,6 @@ TGapLinePWave::~TGapLinePWave() {
*
*/
TGapDWave::~TGapDWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -388,9 +358,6 @@ TGapDWave::~TGapDWave() {
*
*/
TGapCosSqDWave::~TGapCosSqDWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -403,9 +370,6 @@ TGapCosSqDWave::~TGapCosSqDWave() {
*
*/
TGapSinSqDWave::~TGapSinSqDWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -418,9 +382,6 @@ TGapSinSqDWave::~TGapSinSqDWave() {
*
*/
TGapAnSWave::~TGapAnSWave() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -433,9 +394,6 @@ TGapAnSWave::~TGapAnSWave() {
*
*/
TGapNonMonDWave1::~TGapNonMonDWave1() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -448,9 +406,6 @@ TGapNonMonDWave1::~TGapNonMonDWave1() {
*
*/
TGapNonMonDWave2::~TGapNonMonDWave2() {
- delete fGapIntegral;
- fGapIntegral = nullptr;
-
fTemp.clear();
fTempIter = fTemp.end();
fIntegralValues.clear();
@@ -458,133 +413,6 @@ TGapNonMonDWave2::~TGapNonMonDWave2() {
fPar.clear();
}
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaSWave::~TLambdaSWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaPointPWave::~TLambdaPointPWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaLinePWave::~TLambdaLinePWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaDWave::~TLambdaDWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaAnSWave::~TLambdaAnSWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaNonMonDWave1::~TLambdaNonMonDWave1() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaNonMonDWave2::~TLambdaNonMonDWave2() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvSWave::~TLambdaInvSWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvPointPWave::~TLambdaInvPointPWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvLinePWave::~TLambdaInvLinePWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvDWave::~TLambdaInvDWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvAnSWave::~TLambdaInvAnSWave() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvNonMonDWave1::~TLambdaInvNonMonDWave1() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-//--------------------------------------------------------------------
-/**
- *
- */
-TLambdaInvNonMonDWave2::~TLambdaInvNonMonDWave2() {
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
-}
-
-
//--------------------------------------------------------------------
/**
* prepare the needed parameters for the integration carried out in TGapIntegral.
@@ -1685,18 +1513,7 @@ double TLambdaInvPowerLaw::operator()(double t, const std::vector
- */
-TFilmMagnetizationDWave::~TFilmMagnetizationDWave()
-{
- delete fLambdaInvSq;
- fLambdaInvSq = nullptr;
+ fLambdaInvSq = std::make_unique