1 |
C $Header: /u/gcmpack/MITgcm/pkg/mdsio/mdsio_write_rs_vec.F,v 1.3 2004/11/30 16:11:10 heimbach Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "MDSIO_OPTIONS.h" |
5 |
|
6 |
subroutine MDS_WRITE_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 arr _RS - model tiled vector |
12 |
C mythid integer - thread id |
13 |
C |
14 |
C Created: 03/29/99 eckert@mit.edu + adcroft@mit.edu |
15 |
|
16 |
implicit none |
17 |
|
18 |
#include "EEPARAMS.h" |
19 |
#include "SIZE.h" |
20 |
#include "PARAMS.h" |
21 |
|
22 |
C Arguments |
23 |
integer dUnit |
24 |
integer irec |
25 |
integer narr |
26 |
integer mythid |
27 |
_RS arr(narr) |
28 |
C Local |
29 |
character*(max_len_mbuf) msgbuf |
30 |
C ------------------------------------------------------------------ |
31 |
if ( debugLevel .GE. debLevB ) then |
32 |
write(msgbuf,'(a,i9.8,2x,i9.8)') |
33 |
& ' MDS_WRITE_RS_VEC: irec = ',irec,narr |
34 |
call print_message( msgbuf, standardmessageunit, |
35 |
& SQUEEZE_RIGHT , mythid) |
36 |
endif |
37 |
|
38 |
write(dUnit,rec=irec) arr |
39 |
C ------------------------------------------------------------------ |
40 |
return |
41 |
end |