@@ -228,8 +228,6 @@ subroutine f_sninit(name, len, summOn, iw, leniw, rw, lenrw) &
228228 file (j:j) = name (j)
229229 end do
230230 iPrt = newunit()
231- ! close (iPrt)
232- ! open (iPrt, file=trim(file), status='unknown', position='append')
233231 call snFileOpenAppend(iPrt, trim (file))
234232 end if
235233 end if
@@ -267,8 +265,6 @@ subroutine f_snsetprint(name, len, iw, leniw, rw, lenrw) &
267265 end do
268266
269267 if (prtfile /= ' ' ) then
270- ! close (iPrint)
271- ! open (iPrint, file=trim(prtfile), status='unknown', position='append')
272268 iPrt = newunit()
273269 call snFileOpenAppend(iPrt,trim (prtfile))
274270 call snSeti(' Print file' , iPrt, 0 , 0 , Errors, &
@@ -306,8 +302,6 @@ subroutine f_snspec(name, len, inform, iw, leniw, rw, lenrw) &
306302
307303 ! If we have a file, try to read it.
308304 if (spcfile /= ' ' ) then
309- ! close(iSpec)
310- ! open(unit=iSpec, file=trim(spcfile), status='old')
311305 call snFileOpenRead(iSpec,trim (spcfile))
312306 call snSpec(iSpec, inform, cw, lencw, iw, leniw, rw, lenrw)
313307 close (iSpec)
@@ -972,7 +966,7 @@ subroutine f_snend(iw, leniw, rw, lenrw) bind(C,name="f_snend")
972966 ! Finish up.
973967 ! ===========================================================================
974968 close (iw(12 )) ! print file
975- close (iw(13 )) ! summary file
969+ if (iw( 13 ) /= 6 ) close (iw(13 )) ! summary file
976970
977971 end subroutine f_snend
978972
0 commit comments