moved copying value before type of unit checked and initialize value to zero
moved copying value before type of unit checked and initialize value to zero

smharper/openmc,sxds/opemmc,liangjg/openmc,shenqicang/openmc,paulromano/openmc,wbinventor/openmc,samuelshaner/openmc,walshjon/openmc,amandalund/openmc,kellyrowland/openmc,mjlong/openmc,kellyrowland/openmc,shikhar413/openmc,shikhar413/openmc,bhermanmit/openmc,samuelshaner/openmc,wbinventor/openmc,amandalund/openmc,amandalund/openmc,liangjg/openmc,mit-crpg/openmc,bhermanmit/openmc,johnnyliu27/openmc,walshjon/openmc,mit-crpg/openmc,nhorelik/openmc,johnnyliu27/openmc,sxds/opemmc,smharper/openmc,smharper/openmc,johnnyliu27/openmc,lilulu/openmc,lilulu/openmc,liangjg/openmc,walshjon/openmc,nhorelik/openmc,mjlong/openmc,paulromano/openmc,bhermanmit/cdash,walshjon/openmc,liangjg/openmc,wbinventor/openmc,mit-crpg/openmc,amandalund/openmc,smharper/openmc,samuelshaner/openmc,mit-crpg/openmc,lilulu/openmc,paulromano/openmc,wbinventor/openmc,shenqicang/openmc,johnnyliu27/openmc,paulromano/openmc,shikhar413/openmc,shikhar413/openmc,samuelshaner/openmc