Skip to content

Commit e7005e4

Browse files
committed
Merge branch 'upstream-objcryst'
* upstream-objcryst: Add access to the weight (g/mol) for ScatteringPowerAtom and Crystal
2 parents 7687283 + 946f37f commit e7005e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ObjCryst/ObjCryst/Crystal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ REAL Crystal::GetWeight() const
420420
{
421421
this->GetScatteringComponentList();
422422
if(mScattCompList.GetNbComponent() == 0) return 0;
423-
REAL w;
423+
REAL w=0;
424424
for(unsigned int i=0; i<mScattCompList.GetNbComponent(); ++i)
425425
{
426426
const ScatteringComponent* psi = &mScattCompList(i);

0 commit comments

Comments
 (0)