source: LMDZ6/branches/Amaury_dev/tools/netcdf95/Variables/nf95_get_var_scalar.h

Last change on this file was 5099, checked in by abarral, 13 months ago

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

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