Last change
on this file since 5725 was
5725,
checked in by aclsce, 3 years ago
|
Added new oasis3-MCT version to be used to handle ensembles simulations with XIOS.
|
File size:
659 bytes
|
Line | |
---|
1 | !********************************************************************************* |
---|
2 | SUBROUTINE hdlerr(istatus, 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) :: istatus, line |
---|
12 | integer :: ierror |
---|
13 | ! |
---|
14 | IF (istatus .NE. NF90_NOERR) THEN |
---|
15 | write ( * , * ) 'NetCDF problem at line',line |
---|
16 | write ( *, * ) 'NetCDF error = ',nf90_strerror(istatus) |
---|
17 | write ( * , * ) 'Stopped ' |
---|
18 | call MPI_Abort ( MPI_COMM_WORLD, 1, ierror ) |
---|
19 | ENDIF |
---|
20 | ! |
---|
21 | RETURN |
---|
22 | END SUBROUTINE hdlerr |
---|
Note: See
TracBrowser
for help on using the repository browser.