Opened 6 years ago

Closed 3 years ago

#1418 closed Defect (wontfix)

Close the netcdf files in agrif_create_data.exe

Reported by: lambertn Owned by: nemo
Priority: low Milestone:
Component: AGRIF Version: trunk
Severity: Keywords: AGRIF IO NetCDF*
Cc:

Description

In /trunk/NEMOGCM/TOOLS/NESTING/src/io_netcdf.f90 some of the SUBROUTINE open the netcdf file without closing it. Here the list of subroutine :

  • Read_Ncdf_Varname
  • Get_NbDims
  • Dims_Existence

Usualy this bug is undetectable because of the relatively small opened files for a run. I had some issues because I extend the numbers of opened files and the programm give me the error "too many ope files".
The solution is simply to put "status = nf90_close(ncid)" at the end of the subroutine.

Commit History (0)

(No commits)

Attachments (1)

nf90close.patch (1.1 KB) - added by mdunphy 3 years ago.
Patch to add three missing calls to nf90_close() in io_netcdf.f90

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by nicolasmartin

  • Keywords close removed

comment:2 Changed 4 years ago by nicolasmartin

  • Keywords IO added; io removed

comment:3 Changed 4 years ago by nicolasmartin

  • Keywords netCDF added; netcdf removed

comment:4 Changed 4 years ago by nicolasmartin

  • Keywords NetCDF added; netCDF removed

comment:5 Changed 4 years ago by nicolasmartin

  • Milestone AGRIF deleted

Milestone AGRIF deleted

comment:6 Changed 4 years ago by nicolasmartin

  • Keywords NetCDF* added; NetCDF removed

Changed 3 years ago by mdunphy

Patch to add three missing calls to nf90_close() in io_netcdf.f90

comment:7 Changed 3 years ago by mdunphy

The attached patch file — nf90close.patch — should resolve this ticket by adding the missing nf90_close() calls.

comment:8 Changed 3 years ago by clevy

  • Resolution set to wontfix
  • Status changed from new to closed

Suppressing tickets opened on the trunk since more than 2 years… cleaning started!

Note: See TracTickets for help on using tickets.