Skip to content

Commit 4ad990d

Browse files
author
Rob
committed
fixed missing header changes
1 parent ad201be commit 4ad990d

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/diffpy/srreal/JeongPeakWidth.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +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);
5254

5355
private:
5456

5557
// data
5658
double mdelta1;
5759
double mdelta2;
5860
double mqbroad;
61+
double mqbroad_new;
5962

6063
// methods
6164
double msdSharpeningRatio(const double& r) const;
@@ -71,6 +74,7 @@ class JeongPeakWidth : public DebyeWallerPeakWidth
7174
ar & mdelta1;
7275
ar & mdelta2;
7376
ar & mqbroad;
77+
ar & mqbroad_new;
7478
}
7579

7680
};

src/tests/TestPDFCalculator.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,18 @@ class TestPDFCalculator : public CxxTest::TestSuite
5555
TS_ASSERT_EQUALS(0.0, jpw0->getDoubleAttr("delta1"));
5656
TS_ASSERT_EQUALS(0.0, jpw0->getDoubleAttr("delta2"));
5757
TS_ASSERT_EQUALS(0.0, jpw0->getDoubleAttr("qbroad"));
58+
TS_ASSERT_EQUALS(0.0, jpw0->getDoubleAttr("qbroad_new"));
5859
JeongPeakWidth jpw;
5960
jpw.setDelta1(1.0);
6061
jpw.setDelta2(2.0);
6162
jpw.setQbroad(3.0);
63+
jpw.setQbroad_new(4.0);
6264
mpdfc->setPeakWidthModel(jpw.clone());
6365
const PeakWidthModelPtr& jpw1 = mpdfc->getPeakWidthModel();
6466
TS_ASSERT_EQUALS(1.0, jpw1->getDoubleAttr("delta1"));
6567
TS_ASSERT_EQUALS(2.0, jpw1->getDoubleAttr("delta2"));
6668
TS_ASSERT_EQUALS(3.0, jpw1->getDoubleAttr("qbroad"));
69+
TS_ASSERT_EQUALS(4.0, jpw1->getDoubleAttr("qbroad_new"));
6770
}
6871

6972

src/tests/TestPeakWidthModel.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ class TestPeakWidthModel : public CxxTest::TestSuite
8888
mcjepw->setDelta1(0.1);
8989
mcjepw->setDelta2(0.2);
9090
mcjepw->setQbroad(0.3);
91+
mcjepw->setQbroad_new(0.003);
9192
TS_ASSERT_EQUALS(0.1, mjepw->getDoubleAttr("delta1"));
9293
TS_ASSERT_EQUALS(0.2, mjepw->getDoubleAttr("delta2"));
9394
TS_ASSERT_EQUALS(0.3, mjepw->getDoubleAttr("qbroad"));
95+
TS_ASSERT_EQUALS(0.003, mjepw->getDoubleAttr("qbroad_new"));
9496
}
9597

9698

@@ -108,6 +110,7 @@ class TestPeakWidthModel : public CxxTest::TestSuite
108110
TS_ASSERT_DELTA(0.5 * w, mjepw->calculate(*bnds), meps);
109111
mcjepw->setDelta2(0);
110112
mcjepw->setQbroad(sqrt(3));
113+
mcjepw->setQbroad_new(sqrt(3));
111114
TS_ASSERT_DELTA(2 * w, mjepw->calculate(*bnds), meps);
112115
}
113116

@@ -121,12 +124,14 @@ class TestPeakWidthModel : public CxxTest::TestSuite
121124
mcjepw->setDelta1(1.1);
122125
mcjepw->setDoubleAttr("delta2", 2.2);
123126
mcjepw->setDoubleAttr("qbroad", 0.03);
127+
mcjepw->setDoubleAttr("qbroad_new", 0.003);
124128
PeakWidthModelPtr pwm2 = dumpandload(mjepw);
125129
JeongPeakWidth* cpwm2 = dynamic_cast<JeongPeakWidth*>(pwm2.get());
126130
TS_ASSERT(cpwm2);
127131
TS_ASSERT_EQUALS(1.1, pwm2->getDoubleAttr("delta1"));
128132
TS_ASSERT_EQUALS(2.2, pwm2->getDoubleAttr("delta2"));
129133
TS_ASSERT_EQUALS(0.03, pwm2->getDoubleAttr("qbroad"));
134+
TS_ASSERT_EQUALS(0.003, pwm2->getDoubleAttr("qbroad_new"));
130135
}
131136

132137

0 commit comments

Comments
 (0)