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

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

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


Revision 1.19 - (show 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 C $Header: /u/gcmpack/MITgcm/pkg/mnc/mnc_init.F,v 1.18 2004/12/08 15:50:46 edhill Exp $
2 C $Name: $
3
4 #include "MNC_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: MNC_INIT
9
10 C !INTERFACE:
11 SUBROUTINE MNC_INIT( myThid )
12
13 C !DESCRIPTION:
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
18 C !USES:
19 #include "mnc_common.h"
20
21 C !INPUT PARAMETERS:
22 integer myThid
23 CEOP
24
25 C !LOCAL VARIABLES:
26 integer i,j, g, v
27 character blank*(MNC_MAX_CHAR)
28
29 C Write blanks or zeros to all the internal names and ID tables
30 DO i = 1,MNC_MAX_CHAR
31 blank(i:i) = ' '
32 ENDDO
33 mnc_blank_name(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
34 DO i = 1,MNC_MAX_ID
35 mnc_d_size(i) = 0
36 mnc_d_ids(i) = 0
37 mnc_f_names(i)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
38 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 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 mnc_f_alld(i,j) = 0
46 ENDDO
47 ENDDO
48
49 C Blank the CW tables
50 DO g = 1,MNC_MAX_ID
51 mnc_cw_gname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
52 mnc_cw_vname(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
53 mnc_cw_vgind(g) = 0
54 mnc_cw_ndim(g) = 0
55 mnc_cw_fgnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
56 mnc_cw_fgud(g) = 0
57 mnc_cw_fgis(g) = 0
58 C mnc_cw_cvnm(g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
59 DO i = 1,MNC_CW_MAX_I
60 mnc_cw_dn(i,g)(1:MNC_MAX_CHAR) = blank(1:MNC_MAX_CHAR)
61 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 mnc_cw_dims(i,g) = 0
66 mnc_cw_is(i,g) = 0
67 mnc_cw_ie(i,g) = 0
68 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 ENDDO
74 DO i = 1,2
75 mnc_cw_vbij(i,g) = 0
76 C mnc_cw_cvse(i,g) = 0
77 ENDDO
78 ENDDO
79
80 C DO i = 1,MNC_CW_CVDAT
81 C mnc_cw_cvdt(i) = 0.0D0
82 C ENDDO
83
84 RETURN
85 END
86
87 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22