Fixed parallel output error and restart problems in the TNE2 solver