/[MITgcm]/MITgcm/pkg/mdsio/mdsio_writefield.F
ViewVC logotype

Contents of /MITgcm/pkg/mdsio/mdsio_writefield.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download)
Wed Nov 2 14:39:46 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58b_post, checkpoint58m_post, checkpoint58r_post, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint58n_post, checkpoint58h_post, checkpoint58j_post, checkpoint57y_pre, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint57w_post, checkpoint58a_post, checkpoint58i_post, mitgcm_mapl_00, checkpoint58o_post, checkpoint57z_post, checkpoint58c_post, checkpoint58k_post, checkpoint58s_post, checkpoint58p_post, checkpoint58q_post
Changes since 1.8: +11 -9 lines
- new argument (useCurrentDir) to force not to use mdsioLocalDir
- use MAX_LEN_FNAM (instead of hard coded 80) in file-name declaration

1 C $Header: /u/gcmpack/MITgcm/pkg/mdsio/mdsio_writefield.F,v 1.8 2004/03/01 20:47:38 molod Exp $
2 C $Name: $
3
4 #include "MDSIO_OPTIONS.h"
5
6 SUBROUTINE MDSWRITEFIELD(
7 I fName,
8 I filePrec,
9 I globalFile,
10 I arrType,
11 I nNz,
12 I arr,
13 I irecord,
14 I myIter,
15 I myThid )
16 C
17 C Arguments:
18 C
19 C fName string base name for file to written
20 C filePrec integer number of bits per word in file (32 or 64)
21 C globalFile logical selects between writing a global or tiled file
22 C arrType char(2) declaration of "arr": either "RS" or "RL"
23 C nNz integer size of third dimension: normally either 1 or Nr
24 C arr RS/RL array to write, arr(:,:,nNz,:,:)
25 C irecord integer record number to read
26 C myIter integer time step number
27 C myThid integer thread identifier
28 C
29 C Routine now calls mdswritefield_new, just a way to add 2 extra arguments
30 C to the argument list. The 1rst new argument is to make the difference between
31 C the vertical dimension (3rd dimension) of an array and the number of levels
32 C the output routine should process. This routine assumes they are the same.
33 C The 2nd new argument (useCurrentDir=.FALSE.) allows to write files to
34 C the "mdsioLocalDir" (if it is set) directory.
35
36 implicit none
37 C Global variables / common blocks
38 #include "SIZE.h"
39 c #include "EEPARAMS.h"
40
41 C Routine arguments
42 character*(*) fName
43 integer filePrec
44 logical globalFile
45 character*(2) arrType
46 integer nNz
47 _RL arr(1-oLx:sNx+oLx,1-oLy:sNy+oLy,nNz,nSx,nSy)
48 integer irecord
49 integer myIter
50 integer myThid
51 C ------------------------------------------------------------------
52 CALL MDSWRITEFIELD_NEW(
53 I fName,filePrec,globalFile,.FALSE.,
54 I arrType,nNz,nNz,arr,irecord,
55 I myIter,myThid )
56 C ------------------------------------------------------------------
57 return
58 end

  ViewVC Help
Powered by ViewVC 1.1.22