Skip to content

Commit 946f37f

Browse files
committed
Merge branch 'master' of github.com:vincefn/objcryst into upstream-objcryst
* 'master' of github.com:vincefn/objcryst: Add access to the weight (g/mol) for ScatteringPowerAtom and Crystal
2 parents e240e39 + dcb00e1 commit 946f37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)