/[MITgcm]/MITgcm/eesupp/src/mds_reclen.F
ViewVC logotype

Contents of /MITgcm/eesupp/src/mds_reclen.F

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


Revision 1.1 - (show annotations) (download)
Tue Aug 23 13:21:08 2005 UTC (18 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint57s_post, checkpoint60, checkpoint61, checkpoint58r_post, checkpoint57y_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint57y_pre, checkpoint58q_post, checkpoint57v_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint57x_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58b_post, checkpoint58m_post
move basic S/R (with no I/O, + used outside of pkg/mdsio) from pkg/mdsio
 to allow to compile the code without pkg/mdsio.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_EEOPTIONS.h"
5
6 integer function MDS_RECLEN( filePrec, nnn, mythid )
7 C IN:
8 C filePrec integer - precision of file in bits
9 C nnn integer - number of elements in record
10 C OUT:
11 C MDS_RECLEN integer - appropriate length of record in bytes or words
12 C
13 C Created: 03/29/99 eckert@mit.edu + adcroft@mit.edu
14
15 implicit none
16
17 C Global variables
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 C
22 C Arguments
23 integer filePrec
24 integer nnn
25 integer mythid
26 C
27 C Local
28 character*(max_len_mbuf) msgbuf
29 C ------------------------------------------------------------------
30
31 if (filePrec .EQ. precFloat32) then
32 MDS_RECLEN=nnn*WORDLENGTH
33 elseif (filePrec .EQ. precFloat64) then
34 MDS_RECLEN=nnn*WORDLENGTH*2
35 else
36 write(msgbuf,'(a,i2.2)')
37 & ' MDS_RECLEN: filePrec = ',filePrec
38 call print_message( msgbuf, standardmessageunit,
39 & SQUEEZE_RIGHT , mythid)
40 write(msgbuf,'(a)')
41 & ' MDS_RECLEN: illegal value for filePrec'
42 call print_error( msgbuf, mythid )
43 stop 'ABNORMAL END: S/R MDS_RECLEN'
44 endif
45
46 C ------------------------------------------------------------------
47 return
48 end

  ViewVC Help
Powered by ViewVC 1.1.22