mit-crpg/openmc — pull request #163 by nelsonag (2013-04-04 19:47:14+00:00)
Title: Minor CMFD fixes for clarity and to work with GNU 4.7.2

Two changes are included in this request:
1) The users manual says that the default value of the Element's albedo attribute is an array of six 1.0s. However, this wasnt reflected in the code. The code is updated to reflect this change.

2) For some reason GNU 4.6.* allows passing of a scalar where a 1-D array (with one value) is expected. GNU 4.7.2 does not. The use of MatSetValues in the CMFD portion of OpenMC therefore wouldn't compile with GNU 4.7.2, but it would with 4.6.*. I fixed this by simply changing the scalar int to an array with the good old (/num/) strategy. We are now in agreement with the PETSc manual for version 3.3 (and probably earlier).