Close the output netCDF files
subroutine nc_finish
# ifdef NETCDF
use mp, only: proc0
use neasyf, only: neasyf_close
implicit none
if (proc0) then
call neasyf_close(ncid)
if (ncid_movie >= 0) then
call neasyf_close(ncid_movie)
endif
end if
# endif
end subroutine nc_finish