Skip to content

Commit 43dc44f

Browse files
author
Rob
committed
fixed minor issues
1 parent e2d0193 commit 43dc44f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/diffpy/srreal/JeongPeakWidth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using namespace std;
3030
// Constructors --------------------------------------------------------------
3131

3232
JeongPeakWidth::JeongPeakWidth() :
33-
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0)
33+
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0), mqbroad_new(0.0)
3434
{
3535
this->registerDoubleAttribute("delta1",
3636
this, &JeongPeakWidth::getDelta1, &JeongPeakWidth::setDelta1);

src/tests/TestPeakWidthModel.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TestPeakWidthModel : public CxxTest::TestSuite
8484
void test_attributes()
8585
{
8686
TS_ASSERT_EQUALS(0, mdwpw->namesOfDoubleAttributes().size());
87-
TS_ASSERT_EQUALS(3, mjepw->namesOfDoubleAttributes().size());
87+
TS_ASSERT_EQUALS(4, mjepw->namesOfDoubleAttributes().size());
8888
mcjepw->setDelta1(0.1);
8989
mcjepw->setDelta2(0.2);
9090
mcjepw->setQbroad(0.3);
@@ -141,7 +141,7 @@ class TestPeakWidthModel : public CxxTest::TestSuite
141141
TS_ASSERT(mcnpw->hasDoubleAttr("width"));
142142
TS_ASSERT(mcnpw->hasDoubleAttr("bisowidth"));
143143
TS_ASSERT(mcnpw->hasDoubleAttr("uisowidth"));
144-
TS_ASSERT_EQUALS(3, mcnpw->namesOfDoubleAttributes().size());
144+
TS_ASSERT_EQUALS(4, mcnpw->namesOfDoubleAttributes().size());
145145
mccnpw->setWidth(0.1);
146146
TS_ASSERT_EQUALS(0.1, mcnpw->getDoubleAttr("width"));
147147
TS_ASSERT_EQUALS(0.1, mcnpw->maxWidth(dimer(), 0, 4));

0 commit comments

Comments
 (0)