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

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

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


Revision 1.4 - (hide annotations) (download)
Sat Jan 17 13:55:49 2004 UTC (20 years, 4 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint52i_post, checkpoint52i_pre, checkpoint52h_pre
Changes since 1.3: +11 -6 lines
 o fix MNC dimensions so they are now per-NetCDF-file: this was a serious
     error in the earlier design
 o fix use of _RL,_RS where they should be REAL*4,REAL*8
 o intelligent error handling for situations where the number of NetCDF
     variables exceeds the available storage space within the MNC
     "tables"
 o add descriptions to the variables in the model_grid output

1 edhill 1.4 C $Header: /u/u3/gcmpack/MITgcm/pkg/mnc/mnc_init.F,v 1.3 2004/01/08 07:24:47 edhill Exp $
2 edhill 1.1 C $Name: $
3    
4     #include "MNC_OPTIONS.h"
5    
6     C==================================================================
7    
8     SUBROUTINE MNC_INIT()
9    
10     #include "mnc_common.h"
11    
12     C Arguments
13    
14     C Local Variables
15 edhill 1.3 integer i,j
16 edhill 1.1 character blank*(MNC_MAX_CHAR)
17    
18     C Write blanks or zeros to all the name and ID tables
19     DO i = 1,mnc_max_char
20     blank(i:i) = ' ';
21     ENDDO
22 edhill 1.2 mnc_blank_name(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
23 edhill 1.1 DO i = 1,mnc_max_id
24     mnc_f_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
25 edhill 1.2 mnc_g_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
26     mnc_v_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
27     mnc_d_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
28 edhill 1.3 DO j = 1,MNC_MAX_INFO
29     mnc_f_info(i,j) = 0
30     mnc_fv_ids(i,j) = 0
31     mnc_fg_ids(i,j) = 0
32     mnc_fd_ind(i,j) = 0
33 edhill 1.4 mnc_f_alld(i,j) = 0
34 edhill 1.3 ENDDO
35     ENDDO
36    
37     RETURN
38     END
39    
40     C==================================================================
41    
42     SUBROUTINE MNC_DUMP()
43    
44     #include "mnc_common.h"
45    
46     C Arguments
47    
48     C Local Variables
49     integer i,j, n_id
50    
51     C n_id = mnc_max_id
52 edhill 1.4 n_id = 5
53 edhill 1.3
54     write(*,*) 'mnc_f_names :'
55     DO i = 1,n_id
56     write(*,'(a,a40)') ' ', mnc_f_names(i)
57     ENDDO
58     write(*,*) 'mnc_g_names :'
59     DO i = 1,n_id
60     write(*,'(a,a40)') ' ', mnc_g_names(i)
61     ENDDO
62     write(*,*) 'mnc_v_names :'
63     DO i = 1,n_id
64     write(*,'(a,a40)') ' ', mnc_v_names(i)
65     ENDDO
66     write(*,*) 'mnc_d_names :'
67     DO i = 1,n_id
68     write(*,'(a,a40)') ' ', mnc_d_names(i)
69     ENDDO
70    
71     write(*,*) 'mnc_f_info :'
72     DO i = 1,n_id
73 edhill 1.4 write(*,*) (mnc_f_info(i,j), j=1,30)
74 edhill 1.3 ENDDO
75     write(*,*) 'mnc_fg_ids :'
76     DO i = 1,n_id
77 edhill 1.4 write(*,*) (mnc_fg_ids(i,j), j=1,30)
78 edhill 1.3 ENDDO
79     write(*,*) 'mnc_fd_ind :'
80     DO i = 1,n_id
81 edhill 1.4 write(*,*) (mnc_fd_ind(i,j), j=1,30)
82 edhill 1.3 ENDDO
83     write(*,*) 'mnc_fv_ids :'
84     DO i = 1,n_id
85 edhill 1.4 write(*,*) (mnc_fv_ids(i,j), j=1,30)
86     ENDDO
87     write(*,*) 'mnc_f_alld :'
88     DO i = 1,n_id
89     write(*,*) (mnc_f_alld(i,j), j=1,30)
90 edhill 1.1 ENDDO
91    
92 edhill 1.2 RETURN
93 edhill 1.1 END
94    

  ViewVC Help
Powered by ViewVC 1.1.22