Skip to content

Commit

Permalink
enable writing parameters for the GRUs
Browse files Browse the repository at this point in the history
  • Loading branch information
martynpclark committed May 26, 2021
1 parent 6d42d13 commit 34f07e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/source/netcdf/def_output.f90
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ subroutine def_variab(ncid,iFreq,spatialDesire,timeDesire,metaData,ivtype,err,me
! (scalar variable -- many different types)
case(iLookvarType%scalarv)
if(spatialDesire==needGRU .and. timeDesire==needTime) then; call cloneStruc(dimensionIDs, lowerBound=1, source=(/ gru_DimID,Timestep_DimID/), err=err, message=cmessage); writechunk=(/ gruChunk, int(timeChunk/gruChunk)+1 /); endif
if(spatialDesire==needGRU .and. timeDesire== noTime) then; call cloneStruc(dimensionIDs, lowerBound=1, source=(/ gru_DimID/), err=err, message=cmessage); writechunk=(/ gruChunk /); endif
if(spatialDesire==needHRU .and. timeDesire==needTime) then; call cloneStruc(dimensionIDs, lowerBound=1, source=(/ hru_DimID,Timestep_DimID/), err=err, message=cmessage); writechunk=(/ hruChunk, int(timeChunk/hruChunk)+1 /); endif
if(spatialDesire==needHRU .and. timeDesire== noTime) then; call cloneStruc(dimensionIDs, lowerBound=1, source=(/ hru_DimID/) , err=err, message=cmessage); writechunk=(/ hruChunk /); endif
if(spatialDesire== noHRU .and. timeDesire==needTime) then; call cloneStruc(dimensionIDs, lowerBound=1, source=(/Timestep_DimID/) , err=err, message=cmessage); writechunk=(/ gruChunk /); endif
Expand Down

0 comments on commit 34f07e7

Please sign in to comment.