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

Annotation of /MITgcm/pkg/mdsio/mdsio_reclen.F

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


Revision 1.3 - (hide annotations) (download)
Tue Aug 23 13:19:34 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
move basic S/R (with no I/O, + used outside of pkg/mdsio) to eesupp/src
 to allow to compile the code without pkg/mdsio.

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/mdsio/mdsio_reclen.F,v 1.2 2005/08/19 22:42:02 heimbach Exp $
2 heimbach 1.2 C $Name: $
3 adcroft 1.1
4     #include "MDSIO_OPTIONS.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 heimbach 1.2
17     C Global variables
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     C
22 adcroft 1.1 C Arguments
23     integer filePrec
24     integer nnn
25     integer mythid
26 heimbach 1.2 C
27 adcroft 1.1 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