Skip to content

Commit

Permalink
Small modification in cdfchgrid to allow files without depth dimension
Browse files Browse the repository at this point in the history
 * in this case force the k-loop to done once
  • Loading branch information
molines committed Nov 10, 2016
1 parent c1659fb commit 2d81d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdfchgrid.f90
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ PROGRAM cdfchgrid

PRINT *,' Working with ', TRIM(cv_in), npk
DO jt = 1, npt
DO jk = 1, npk
DO jk = 1, npkk
v2d(1:npiglo,1:npjglo) = getvar(cf_in, cv_in, jk, npiglo, npjglo, ktime=jt)
! duplicate last row and column
v2d(npiglo+1, :) = v2d(npiglo,:)
Expand Down

0 comments on commit 2d81d8b

Please sign in to comment.