Fix array IndexOutofbounds crash when a input material is never used for MG mode
Created by: liangjg
@wuwenbin2006 reported this bug. Since #1016, we use push_back
instead of allocate
to initialize the macro_xs
array. However, the array length should be equal to the number of materials, though we do not need to load the materials which we do not actually use in the problem.