A couple of changes on the fortran side to account for the new convention
regarding domain walls. Still not working properly.