Close open units explicitly

This commit is contained in:
Lorenzo Figini 2022-02-01 16:06:32 +01:00
parent 6627cb1481
commit b7bec590d6

View File

@ -127,6 +127,22 @@ program main_std
print*,'Pabs (MW), Icd (kA) = ', pec,icd*1.0e3_wp_
! ======= control prints END =======
! ======= flush open files BEGIN =======
close(ucenr)
close(usumm)
close(uprj0)
close(uprj0+1)
close(uwbm)
close(udisp)
close(ubres)
close(ucnt)
close(uoutr)
close(ueq)
close(uprfin)
close(uflx)
close(upec)
! ======= flush open files END =======
! ======= free memory BEGIN =======
if(allocated(psrad)) deallocate(psrad)
if(allocated(terad)) deallocate(terad, derad, zfc)