Skip to content

Commit

Permalink
Limits the definition of cohort dim in ELM nc files
Browse files Browse the repository at this point in the history
The `cohort` dimension ELM output and restart files is only defined
when FATES is turned on.

Fixes #5694
[non-BFB]
  • Loading branch information
bishtgautam committed May 18, 2023
1 parent 8f8bcfa commit 99f5c72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/elm/src/main/restFileMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,9 @@ subroutine restFile_dimset( ncid )
call ncd_defdim(ncid , namel , numl , dimid)
call ncd_defdim(ncid , namec , numc , dimid)
call ncd_defdim(ncid , namep , nump , dimid)
call ncd_defdim(ncid , nameCohort , numCohort , dimid)
if ( use_fates ) then
call ncd_defdim(ncid , nameCohort , numCohort , dimid)
endif

call ncd_defdim(ncid , 'levgrnd' , nlevgrnd , dimid)
call ncd_defdim(ncid , 'levurb' , nlevurb , dimid)
Expand Down

0 comments on commit 99f5c72

Please sign in to comment.