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

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

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


Revision 1.1 - (hide annotations) (download)
Fri Feb 24 20:39:10 2006 UTC (18 years, 3 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58u_post, checkpoint58w_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint58c_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58b_post, checkpoint58m_post
add missing-value capability to MNC:
 + currently off by default for everything
 + compiles and runs with GNU, Intel, & PGI
 + includes code to skip attributes writing for all but the initial
     write of any variable within any netCDF file

1 edhill 1.1 C $Header: $
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_CW_VATTR_MISSING
9    
10     C !INTERFACE:
11     SUBROUTINE MNC_CW_VATTR_MISSING(
12     I vname,
13     I iflag,
14     I mv_r8, mv_r4, mv_int,
15     I myThid )
16    
17     C !DESCRIPTION:
18     C Set missing values to be associated with a CW variable name.
19    
20     C !USES:
21     implicit none
22     #include "mnc_common.h"
23     #include "EEPARAMS.h"
24    
25     C !INPUT PARAMETERS:
26     integer myThid, iflag
27     character*(*) vname
28     REAL*8 mv_r8(2)
29     REAL*4 mv_r4(2)
30     INTEGER mv_int(2)
31     CEOP
32    
33     C !LOCAL VARIABLES:
34     integer nvf,nvl, indv, ii
35     character*(MAX_LEN_MBUF) msgbuf
36    
37     C Functions
38     integer IFNBLNK, ILNBLNK
39    
40     nvf = IFNBLNK(vname)
41     nvl = ILNBLNK(vname)
42    
43     C Check that vname is defined
44     CALL MNC_GET_IND(MNC_MAX_ID, vname, mnc_cw_vname, indv, myThid)
45     IF (indv .LT. 1) THEN
46     write(msgbuf,'(3a)') 'MNC_CW_VATTR_MISSING ERROR: ''',
47     & vname(nvf:nvl), ''' is not defined'
48     CALL print_error(msgbuf, mythid)
49     stop 'ABNORMAL END: S/R MNC_CW_VATTR_MISSING'
50     ENDIF
51    
52     mnc_cw_vfmv(indv) = iflag
53     DO ii = 1,2
54     mnc_cw_vmvd(ii,indv) = mv_r8(ii)
55     mnc_cw_vmvr(ii,indv) = mv_r4(ii)
56     mnc_cw_vmvi(ii,indv) = mv_int(ii)
57     ENDDO
58    
59     RETURN
60     END
61    
62     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22