Skip to content

Commit db7f31b

Browse files
authored
Merge pull request #20 from makeclean/serpent_mat_bug
Error in Serpent2 mat format
2 parents 7216c3d + f715787 commit db7f31b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/SerpentMaterialCard.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def write_serpent_material(filestream, material):
1010
# if its a non tally material set the relevant colour
1111
if material.material_colour != 0:
1212
string += " rgb " + material.material_colour + "\n"
13+
else:
14+
string += "\n"
15+
1316
for nuc in material.composition_dictionary:
1417
string += '{} {:e} \n'.format(nuc, material.composition_dictionary[nuc])
1518
filestream.write(string)

0 commit comments

Comments
 (0)