New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#1418 (Close the netcdf files in agrif_create_data.exe) – NEMO

Opened 9 years ago

Closed 7 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 7 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 8 years ago by nicolasmartin

  • Keywords close removed

comment:2 Changed 8 years ago by nicolasmartin

  • Keywords IO added; io removed

comment:3 Changed 8 years ago by nicolasmartin

  • Keywords netCDF added; netcdf removed

comment:4 Changed 8 years ago by nicolasmartin

  • Keywords NetCDF added; netCDF removed

comment:5 Changed 8 years ago by nicolasmartin

  • Milestone AGRIF deleted

Milestone AGRIF deleted

comment:6 Changed 8 years ago by nicolasmartin

  • Keywords NetCDF* added; NetCDF removed

Changed 7 years ago by mdunphy

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

comment:7 Changed 7 years ago by mdunphy

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

comment:8 Changed 7 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.