1 |
C $Header: /u/gcmpack/MITgcm/pkg/mdsio/mdsio_read_rs_vec.F,v 1.2 2003/07/08 15:00:26 heimbach Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "MDSIO_OPTIONS.h" |
5 |
|
6 |
subroutine MDS_READ_RS_VEC( dUnit, irec, narr, arr, mythid ) |
7 |
C IN: |
8 |
C dunit integer - 'Opened' I/O channel |
9 |
C irec integer - record number to write |
10 |
C narr integer - dimension off array "arr" |
11 |
C mythid integer - thread id |
12 |
C OUT: |
13 |
C arr _RS - model tiled vector |
14 |
C |
15 |
C Created: 03/29/99 eckert@mit.edu + adcroft@mit.edu |
16 |
|
17 |
implicit none |
18 |
|
19 |
#include "EEPARAMS.h" |
20 |
#include "SIZE.h" |
21 |
#include "PARAMS.h" |
22 |
|
23 |
C Arguments |
24 |
integer dUnit |
25 |
integer irec |
26 |
integer narr |
27 |
_RS arr(narr) |
28 |
integer mythid |
29 |
C Local |
30 |
character*(max_len_mbuf) msgbuf |
31 |
C ------------------------------------------------------------------ |
32 |
if ( debugLevel .GE. debLevB ) then |
33 |
write(msgbuf,'(a,i9.8,2x,i9.8)') |
34 |
& ' MDS_READ_RS_VEC: irec = ',irec,narr |
35 |
call print_message( msgbuf, standardmessageunit, |
36 |
& SQUEEZE_RIGHT , mythid) |
37 |
endif |
38 |
|
39 |
read(dUnit,rec=irec) arr |
40 |
C ------------------------------------------------------------------ |
41 |
return |
42 |
end |