Skip to content

Commit dcb00e1

Browse files
committed
Add access to the weight (g/mol) for ScatteringPowerAtom and Crystal
1 parent 9c4b05b commit dcb00e1

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)