/[MITgcm]/MITgcm/pkg/diagnostics/diagnostics_setunits.F
ViewVC logotype

Contents of /MITgcm/pkg/diagnostics/diagnostics_setunits.F

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


Revision 1.8 - (show annotations) (download)
Mon Jan 23 22:21:16 2006 UTC (18 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58b_post, checkpoint58m_post, checkpoint58r_post, checkpoint58g_post, checkpoint58n_post, checkpoint58x_post, checkpoint58h_post, checkpoint58w_post, checkpoint58j_post, checkpoint58q_post, mitgcm_mapl_00, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint58i_post, checkpoint58o_post, checkpoint58c_post, checkpoint58k_post, checkpoint58u_post, checkpoint58y_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58t_post
Changes since 1.7: +2 -1 lines
put #include "EEPARAMS.h" first (to get MAX_LEN_FNAM defined for other
 included header files)

1 C $Header: /u/gcmpack/MITgcm/pkg/diagnostics/diagnostics_setunits.F,v 1.7 2005/06/26 16:51:49 jmc Exp $
2 C $Name: $
3
4 #include "DIAG_OPTIONS.h"
5
6 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
7 CBOP 0
8 C !ROUTINE: DIAGNOSTICS_SETUNITS
9
10 C !INTERFACE:
11 SUBROUTINE DIAGNOSTICS_SETUNITS (
12 I myThid,
13 I chardiag,
14 I diagunits )
15
16 C !DESCRIPTION:
17 C Wrapper routine to set the units of an active diagnostic
18
19 C !USES:
20 implicit none
21 #include "EEPARAMS.h"
22 #include "SIZE.h"
23 #include "DIAGNOSTICS_SIZE.h"
24 #include "DIAGNOSTICS.h"
25
26 C !INPUT PARAMETERS:
27 integer myThid
28 character*8 chardiag
29 character*16 diagunits
30 CEOP
31
32 C Local variables
33 integer n, ndiagnum, ipointer
34
35 C Run through list of active diagnostics to make sure
36 C we are trying to fill a valid diagnostic
37
38 ndiagnum = 0
39 ipointer = 0
40 do n = 1,ndiagt
41 if(chardiag.eq.cdiag(n)) then
42 ndiagnum = n
43 c ipointer = idiag(n)
44 endif
45 enddo
46 if( ndiagnum.ne.0 .and. ipointer.ne.0 ) then
47 udiag(ndiagnum)=diagunits
48 else
49 write(6,1000)chardiag
50 endif
51
52 1000 format(' ',' Warning: Trying to set units of diagnostic ',a8,
53 & ' But it is not a valid (or active) name ')
54
55 return
56 end

  ViewVC Help
Powered by ViewVC 1.1.22