Last change
on this file since 5403 was
5084,
checked in by Laurent Fairhead, 5 months ago
|
Reverting to r4065. Updating fortran standard broke too much stuff. Will do it by smaller chunks
AB, LF
|
File size:
645 bytes
|
Rev | Line | |
---|
[4918] | 1 | module nf95_redef_m |
---|
| 2 | |
---|
| 3 | implicit none |
---|
| 4 | |
---|
| 5 | contains |
---|
| 6 | |
---|
| 7 | subroutine nf95_redef(ncid, ncerr) |
---|
| 8 | |
---|
| 9 | use nf95_abort_m, only: nf95_abort |
---|
[5084] | 10 | use netcdf, only: nf90_redef |
---|
[4918] | 11 | use nf95_constants, only: nf95_noerr |
---|
| 12 | |
---|
| 13 | integer, intent( in) :: ncid |
---|
| 14 | integer, intent(out), optional :: ncerr |
---|
| 15 | |
---|
| 16 | ! Variable local to the procedure: |
---|
| 17 | integer ncerr_not_opt |
---|
| 18 | |
---|
| 19 | !------------------- |
---|
| 20 | |
---|
| 21 | ncerr_not_opt = nf90_redef(ncid) |
---|
| 22 | |
---|
| 23 | if (present(ncerr)) then |
---|
| 24 | ncerr = ncerr_not_opt |
---|
| 25 | else |
---|
| 26 | if (ncerr_not_opt /= nf95_noerr) call nf95_abort("nf95_redef", & |
---|
| 27 | ncerr_not_opt, ncid) |
---|
| 28 | end if |
---|
| 29 | |
---|
| 30 | end subroutine nf95_redef |
---|
| 31 | |
---|
| 32 | end module nf95_redef_m |
---|
Note: See
TracBrowser
for help on using the repository browser.