- added boundary condition mask to output for debugging.