Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed minor issues
  • Loading branch information
Rob
Rob committed Dec 5, 2019
commit 43dc44f3b90f80bc89515514eb75b509a40def0b
2 changes: 1 addition & 1 deletion src/diffpy/srreal/JeongPeakWidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace std;
// Constructors --------------------------------------------------------------

JeongPeakWidth::JeongPeakWidth() :
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0)
mdelta1(0.0), mdelta2(0.0), mqbroad(0.0), mqbroad_new(0.0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not a good name. A more descriptive name would be better. I don't know, separable_mqbroad or something along those lines?

{
this->registerDoubleAttribute("delta1",
this, &JeongPeakWidth::getDelta1, &JeongPeakWidth::setDelta1);
Expand Down
4 changes: 2 additions & 2 deletions src/tests/TestPeakWidthModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TestPeakWidthModel : public CxxTest::TestSuite
void test_attributes()
{
TS_ASSERT_EQUALS(0, mdwpw->namesOfDoubleAttributes().size());
TS_ASSERT_EQUALS(3, mjepw->namesOfDoubleAttributes().size());
TS_ASSERT_EQUALS(4, mjepw->namesOfDoubleAttributes().size());
mcjepw->setDelta1(0.1);
mcjepw->setDelta2(0.2);
mcjepw->setQbroad(0.3);
Expand Down Expand Up @@ -141,7 +141,7 @@ class TestPeakWidthModel : public CxxTest::TestSuite
TS_ASSERT(mcnpw->hasDoubleAttr("width"));
TS_ASSERT(mcnpw->hasDoubleAttr("bisowidth"));
TS_ASSERT(mcnpw->hasDoubleAttr("uisowidth"));
TS_ASSERT_EQUALS(3, mcnpw->namesOfDoubleAttributes().size());
TS_ASSERT_EQUALS(4, mcnpw->namesOfDoubleAttributes().size());
mccnpw->setWidth(0.1);
TS_ASSERT_EQUALS(0.1, mcnpw->getDoubleAttr("width"));
TS_ASSERT_EQUALS(0.1, mcnpw->maxWidth(dimer(), 0, 4));
Expand Down