source: LMDZ6/trunk/tools/netcdf95/Variables/nf95_get_var_array.h @ 5443

Last change on this file since 5443 was 4918, checked in by Laurent Fairhead, 10 months ago

Reintegrated NetCDF95 in LMDZ so that it is compiled and made available by the makelmdz_fcm script.
The makelmdz_fcm creates the libnetcdf95 library and copies it in the tools/netcdf/lib directory, copying
the mod files in the tools/netcdf/include library.

File size: 675 bytes
Line 
1  ! -*- mode: f90; -*-
2 
3  ! Body of specific procedures of generic interface "nf95_get_var",
4  ! with array argument "values".
5 
6  call check_start_count(procedure_name, ncid, varid, start, count_nc, &
7       rank_values)
8  ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, stride, &
9       map)
10
11  if (present(ncerr)) then
12     ncerr = ncerr_not_opt
13  else
14     if (ncerr_not_opt /= nf95_noerr) call nf95_abort(procedure_name, &
15          ncerr_not_opt, ncid, varid)
16  end if
17
18  if (ncerr_not_opt == NF90_NOERR .and. present(new_missing)) then
19     call nf95_get_missing(ncid, varid, missing)
20     where (values == missing) values = new_missing
21  end if
Note: See TracBrowser for help on using the repository browser.