Skip to content

Commit

Permalink
fixed issue #1497
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Vertenstein committed May 9, 2017
1 parent 5684406 commit 4cb1b76
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/data_comps/docn/docn_comp_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module docn_comp_mod
integer(IN) :: kt,ks,ku,kv,kdhdx,kdhdy,kq,kswp ! field indices
integer(IN) :: kswnet,klwup,klwdn,ksen,klat,kmelth,ksnow,krofi
integer(IN) :: kh,kqbot
integer(IN) :: index_lat, index_lon

type(shr_strdata_type) :: SDOCN
type(mct_rearr) :: rearr
Expand Down Expand Up @@ -148,8 +149,6 @@ subroutine docn_comp_init( EClock, cdata, x2o, o2x, NLFilename )
integer(IN) :: nunit ! unit number
integer(IN) :: kmask ! field reference
integer(IN) :: kfrac ! field reference
integer(IN) :: klat ! field reference
integer(IN) :: klon ! field reference
logical :: ocn_present ! flag
logical :: ocn_prognostic ! flag
logical :: ocnrof_prognostic ! flag
Expand Down Expand Up @@ -466,11 +465,11 @@ subroutine docn_comp_init( EClock, cdata, x2o, o2x, NLFilename )
kmask = mct_aVect_indexRA(ggrid%data,'mask')
imask(:) = nint(ggrid%data%rAttr(kmask,:))

klon = mct_aVect_indexRA(ggrid%data,'lon')
xc(:) = ggrid%data%rAttr(klon,:)
index_lon = mct_aVect_indexRA(ggrid%data,'lon')
xc(:) = ggrid%data%rAttr(index_lon,:)

klat = mct_aVect_indexRA(ggrid%data,'lat')
yc(:) = ggrid%data%rAttr(klat,:)
index_lat = mct_aVect_indexRA(ggrid%data,'lat')
yc(:) = ggrid%data%rAttr(index_lat,:)

call t_stopf('docn_initmctavs')

Expand Down

0 comments on commit 4cb1b76

Please sign in to comment.