Banking particles in surface_source.h5

I am trying to bank particles crossing surface 26 in the file surface_source.h5 . I included the following in the file settings.xml:
<surf_src_write surface_ids=“20”></surf_src_write>
OpenMC seems to works correctly but it doesn’t create such file surface_source.h5. What am I doing wrong?

@josem The correct format of <surf_src_write> element is following:

<surf_source_write>
 <surface_ids>26</surface_ids>
 <max_particles>1000</max_particles>
</surf_source_write>

You’ll find details here.

I had the same issue as @josem, couldn’t get my surface sources to read or write.

I believe there is a mistake in the documentation:
https://docs.openmc.org/en/stable/io_formats/settings.html#surf-src-write-element

the commands are:
<surf_src_read>
<surf_src_write>

When they should be:
<surf_source_read>
<surf_source_write>

OpenMC still runs with the former incorrect commands, in the first it just runs the default (0,0,0) source, in the latter it just doesn’t write a source.

Thanks for pointing this out @yrrepy. I’ve just submitted a fix for this that should make it into the next release of OpenMC: