/[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.19 - (hide annotations) (download)
Fri Dec 17 21:28:26 2004 UTC (19 years, 5 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint57o_post, checkpoint57m_post, checkpoint57k_post, checkpoint57d_post, checkpoint57g_post, checkpoint57b_post, checkpoint57c_pre, checkpoint57i_post, checkpoint57e_post, checkpoint57g_pre, checkpoint57f_pre, checkpoint57r_post, eckpoint57e_pre, checkpoint57h_done, checkpoint57n_post, checkpoint57p_post, checkpoint57f_post, checkpoint57q_post, checkpoint57c_post, checkpoint57j_post, checkpoint57h_pre, checkpoint57l_post, checkpoint57h_post
Changes since 1.18: +7 -1 lines
 o add CF-style coordinate variables to MNC
   - just a first cut:  numbers are meaningless on the cubesphere and
     missing along the T axis but otherwise it works!

1 edhill 1.19 C $Header: /u/gcmpack/MITgcm/pkg/mnc/mnc_init.F,v 1.18 2004/12/08 15:50:46 edhill Exp $
2 edhill 1.1 C $Name: $
3    
4     #include "MNC_OPTIONS.h"
5    
6 edhill 1.6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 edhill 1.14 CBOP 0
8 edhill 1.13 C !ROUTINE: MNC_INIT
9 edhill 1.1
10 edhill 1.13 C !INTERFACE:
11 edhill 1.11 SUBROUTINE MNC_INIT( myThid )
12 edhill 1.1
13 edhill 1.13 C !DESCRIPTION:
14 edhill 1.14 C Initialize (zero) the look-up tables. This routine should
15     C \textbf{always} be run before any other MNC subroutines to ensure
16     C that the lookup tables start in a well-defined state.
17 edhill 1.13
18     C !USES:
19 edhill 1.1 #include "mnc_common.h"
20    
21 edhill 1.13 C !INPUT PARAMETERS:
22 edhill 1.11 integer myThid
23 edhill 1.14 CEOP
24 edhill 1.1
25 edhill 1.13 C !LOCAL VARIABLES:
26 edhill 1.8 integer i,j, g, v
27 edhill 1.1 character blank*(MNC_MAX_CHAR)
28    
29 edhill 1.8 C Write blanks or zeros to all the internal names and ID tables
30 edhill 1.10 DO i = 1,MNC_MAX_CHAR
31 edhill 1.17 blank(i:i) = ' '
32 edhill 1.1 ENDDO
33 edhill 1.2 mnc_blank_name(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
34 edhill 1.5 DO i = 1,MNC_MAX_ID
35     mnc_d_size(i) = 0
36     mnc_d_ids(i) = 0
37 edhill 1.1 mnc_f_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
38 edhill 1.2 mnc_g_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
39     mnc_v_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
40     mnc_d_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
41 edhill 1.3 DO j = 1,MNC_MAX_INFO
42     mnc_f_info(i,j) = 0
43     mnc_fv_ids(i,j) = 0
44     mnc_fd_ind(i,j) = 0
45 edhill 1.4 mnc_f_alld(i,j) = 0
46 edhill 1.3 ENDDO
47     ENDDO
48    
49 edhill 1.15 C Blank the CW tables
50 edhill 1.6 DO g = 1,MNC_MAX_ID
51 edhill 1.7 mnc_cw_gname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
52 edhill 1.8 mnc_cw_vname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
53     mnc_cw_vgind(g) = 0
54 edhill 1.6 mnc_cw_ndim(g) = 0
55 edhill 1.12 mnc_cw_fgnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
56     mnc_cw_fgud(g) = 0
57 edhill 1.16 mnc_cw_fgis(g) = 0
58 edhill 1.19 C mnc_cw_cvnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
59 edhill 1.6 DO i = 1,MNC_CW_MAX_I
60     mnc_cw_dn(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
61 edhill 1.8 mnc_cw_vtnm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
62     mnc_cw_vinm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
63     mnc_cw_vdnm(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
64     mnc_cw_vtat(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
65 edhill 1.6 mnc_cw_dims(i,g) = 0
66     mnc_cw_is(i,g) = 0
67     mnc_cw_ie(i,g) = 0
68 edhill 1.8 mnc_cw_viat(i,g) = 0
69     mnc_cw_vdat(i,g) = 0.0D0
70     ENDDO
71     DO i = 1,3
72     mnc_cw_vnat(i,g) = 0
73 edhill 1.10 ENDDO
74     DO i = 1,2
75     mnc_cw_vbij(i,g) = 0
76 edhill 1.19 C mnc_cw_cvse(i,g) = 0
77 edhill 1.6 ENDDO
78     ENDDO
79 edhill 1.19
80     C DO i = 1,MNC_CW_CVDAT
81     C mnc_cw_cvdt(i) = 0.0D0
82     C ENDDO
83 edhill 1.6
84 edhill 1.3 RETURN
85     END
86    
87 edhill 1.6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22