Last change
on this file since 6328 was
6328,
checked in by aclsce, 17 months ago
|
First import of oasis3-mct_5.0 (from oasis git server, branch OASIS3-MCT_5.0)
|
File size:
711 bytes
|
Rev | Line | |
---|
[6328] | 1 | !********************************************************************************* |
---|
| 2 | SUBROUTINE hdlerr(status,w_unit,subn,file,line) |
---|
| 3 | !********************************************************************************* |
---|
| 4 | use netcdf |
---|
| 5 | implicit none |
---|
| 6 | ! |
---|
| 7 | INCLUDE 'mpif.h' |
---|
| 8 | ! |
---|
| 9 | ! Check for error message from NetCDF call |
---|
| 10 | ! |
---|
| 11 | integer, intent(in) :: status, line, w_unit |
---|
| 12 | character(len=*), intent(in) :: subn |
---|
| 13 | character(len=*), intent(in) :: file |
---|
| 14 | integer :: ierror |
---|
| 15 | ! |
---|
| 16 | IF (status .NE. NF90_NOERR) THEN |
---|
| 17 | write(w_unit,*) 'NetCDF Problem in routine : ',trim(subn) |
---|
| 18 | CALL FLUSH(w_unit) |
---|
| 19 | call routine_model_abort(w_unit,file,line) |
---|
| 20 | ENDIF |
---|
| 21 | ! |
---|
| 22 | RETURN |
---|
| 23 | END SUBROUTINE hdlerr |
---|
Note: See
TracBrowser
for help on using the repository browser.