|
Last change
on this file since 5075 was
5075,
checked in by abarral, 16 months ago
|
|
[continued & end] replace netcdf by lmdz_netcdf.F90 wrapper
"use netcdf" is now only used in lmdz_netcdf.F90 (except ecrad and obsolete/)
<include "netcdf.inc"> is now likewise only used in lmdz_netcdf.F90.
systematically specify explicitely <USE lmdz_netcdf, ONLY:> (probably left some missing, to correct later on)
Further replacement of nf_put_* by nf90_put_* (same for _get_)
[minor] replace deprecated boolean operators along the way
|
|
File size:
861 bytes
|
| Line | |
|---|
| 1 | module nf95_def_dim_m |
|---|
| 2 | |
|---|
| 3 | implicit none |
|---|
| 4 | |
|---|
| 5 | contains |
|---|
| 6 | |
|---|
| 7 | subroutine nf95_def_dim(ncid, name, nclen, dimid, ncerr) |
|---|
| 8 | |
|---|
| 9 | use nf95_abort_m, only: nf95_abort |
|---|
| 10 | use lmdz_netcdf, only: nf90_def_dim |
|---|
| 11 | use nf95_constants, only: nf95_noerr |
|---|
| 12 | |
|---|
| 13 | integer, intent( in) :: ncid |
|---|
| 14 | character (len = *), intent( in) :: name |
|---|
| 15 | integer, intent( in) :: nclen |
|---|
| 16 | integer, intent(out) :: dimid |
|---|
| 17 | integer, intent(out), optional :: ncerr |
|---|
| 18 | |
|---|
| 19 | ! Variable local to the procedure: |
|---|
| 20 | integer ncerr_not_opt |
|---|
| 21 | |
|---|
| 22 | !------------------- |
|---|
| 23 | |
|---|
| 24 | ncerr_not_opt = nf90_def_dim(ncid, name, nclen, dimid) |
|---|
| 25 | if (present(ncerr)) then |
|---|
| 26 | ncerr = ncerr_not_opt |
|---|
| 27 | else |
|---|
| 28 | if (ncerr_not_opt /= nf95_noerr) call nf95_abort("nf95_def_dim " & |
|---|
| 29 | // name, ncerr_not_opt, ncid) |
|---|
| 30 | end if |
|---|
| 31 | |
|---|
| 32 | end subroutine nf95_def_dim |
|---|
| 33 | |
|---|
| 34 | end module nf95_def_dim_m |
|---|
Note: See
TracBrowser
for help on using the repository browser.