/[MITgcm]/MITgcm/pkg/mnc/mnc_var.F
ViewVC logotype

Annotation of /MITgcm/pkg/mnc/mnc_var.F

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


Revision 1.2 - (hide annotations) (download)
Tue Jan 6 23:19:27 2004 UTC (20 years, 4 months ago) by edhill
Branch: MAIN
Changes since 1.1: +2 -1 lines
 o some initial functionality

1 edhill 1.2 C $Header: /u/u3/gcmpack/MITgcm/pkg/mnc/mnc_var.F,v 1.1 2004/01/05 06:20:08 edhill Exp $
2 edhill 1.1 C $Name: $
3    
4     #include "MNC_OPTIONS.h"
5    
6     C==================================================================
7    
8     SUBROUTINE MNC_VAR_INIT_DBL(
9     I myThid,
10     I fname,
11     I gname,
12     I vname,
13     I fillval )
14    
15     implicit none
16     #include "mnc_common.h"
17     #include "EEPARAMS.h"
18    
19     C Arguments
20     integer myThid
21     character*(*) fname
22     character*(*) gname
23     character*(*) vname
24     _RL fillval
25    
26     C Functions
27     integer ILNBLNK
28    
29     C Local Variables
30     integer i, ind, fid
31     character*(MAX_LEN_MBUF) msgbuf
32    
33     C Is the file open?
34     CALL MNC_GET_IND(myThid, MNC_MAX_ID, fname, mnc_f_names, ind)
35     IF ( ind .GT. 0 ) THEN
36     write(msgbuf,'(3a)') 'MNC ERROR: file ''',
37     & fname, ''' must be opened first'
38     CALL print_error( msgbuf, mythid )
39     stop 'ABNORMAL END: S/R MNC_FILE_ADD_ATTR_INT'
40     ENDIF
41     fid = mnc_f_info(ind,2)
42    
43 edhill 1.2 RETURN
44 edhill 1.1 END
45    

  ViewVC Help
Powered by ViewVC 1.1.22