Skip to content

Commit ecd4044

Browse files
author
Rob
committed
changed 'qbroad_new' to 'qbroad_seperable'
1 parent 707bbc3 commit ecd4044

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/diffpy/srreal/JeongPeakWidth.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ using namespace std;
3030
// Constructors --------------------------------------------------------------
3131

3232
JeongPeakWidth::JeongPeakWidth() :
33-
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0), mqbroad_new(0.0)
33+
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0), mqbroad_seperable(0.0)
3434
{
3535
this->registerDoubleAttribute("delta1",
3636
this, &JeongPeakWidth::getDelta1, &JeongPeakWidth::setDelta1);
3737
this->registerDoubleAttribute("delta2",
3838
this, &JeongPeakWidth::getDelta2, &JeongPeakWidth::setDelta2);
3939
this->registerDoubleAttribute("qbroad",
4040
this, &JeongPeakWidth::getQbroad, &JeongPeakWidth::setQbroad);
41-
this->registerDoubleAttribute("qbroad_new",
42-
this, &JeongPeakWidth::getQbroad_new, &JeongPeakWidth::setQbroad_new);
41+
this->registerDoubleAttribute("qbroad_seperable",
42+
this, &JeongPeakWidth::getQbroad_seperable, &JeongPeakWidth::setQbroad_seperable);
4343
}
4444

4545

@@ -72,7 +72,7 @@ double JeongPeakWidth::calculate(const BaseBondGenerator& bnds) const
7272
// avoid calculating square root of negative value
7373
double fwhm = (corr <= 0) ? 0.0 :
7474
(sqrt(corr) * this->DebyeWallerPeakWidth::calculate(bnds) +
75-
pow(this->getQbroad_new()*r, 2));
75+
pow(this->getQbroad_seperable()*r, 2));
7676
return fwhm;
7777
}
7878

@@ -85,7 +85,7 @@ double JeongPeakWidth::maxWidth(StructureAdapterPtr stru,
8585
this->msdSharpeningRatio(rmin),
8686
this->msdSharpeningRatio(rmax));
8787
// if the sharpening factor is larger than 1 adjust the maximum width
88-
double rv = maxwidth0 * sqrt(max(1.0, maxmsdsharp))+ pow(this->getQbroad_new()*rmax, 2);
88+
double rv = maxwidth0 * sqrt(max(1.0, maxmsdsharp))+ pow(this->getQbroad_seperable()*rmax, 2);
8989
return rv;
9090
}
9191

@@ -121,16 +121,16 @@ const double& JeongPeakWidth::getQbroad() const
121121
}
122122

123123

124-
const double& JeongPeakWidth::getQbroad_new() const
124+
const double& JeongPeakWidth::getQbroad_seperable() const
125125
{
126-
return mqbroad_new;
126+
return mqbroad_seperable;
127127
}
128128

129129

130-
void JeongPeakWidth::setQbroad_new(double qbroad_new)
130+
void JeongPeakWidth::setQbroad_seperable(double qbroad_seperable)
131131
{
132-
if (mqbroad_new != qbroad_new) mticker.click();
133-
mqbroad_new = qbroad_new;
132+
if (mqbroad_seperable != qbroad_seperable) mticker.click();
133+
mqbroad_seperable = qbroad_seperable;
134134
}
135135

136136

src/diffpy/srreal/JeongPeakWidth.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ class JeongPeakWidth : public DebyeWallerPeakWidth
4949
void setDelta2(double);
5050
const double& getQbroad() const;
5151
void setQbroad(double);
52-
const double& getQbroad_new() const;
53-
void setQbroad_new(double);
52+
const double& getQbroad_seperable() const;
53+
void setQbroad_seperable(double);
5454

5555
private:
5656

5757
// data
5858
double mdelta1;
5959
double mdelta2;
6060
double mqbroad;
61-
double mqbroad_new;
61+
double mqbroad_seperable;
6262

6363
// methods
6464
double msdSharpeningRatio(const double& r) const;
@@ -74,7 +74,7 @@ class JeongPeakWidth : public DebyeWallerPeakWidth
7474
ar & mdelta1;
7575
ar & mdelta2;
7676
ar & mqbroad;
77-
ar & mqbroad_new;
77+
ar & mqbroad_seperable;
7878
}
7979

8080
};

0 commit comments

Comments
 (0)