Skip to content

Commit

Permalink
Abort if matrixcn is .true. and nrepr is not 1
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Jun 25, 2024
1 parent 47234a9 commit 18e63e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/biogeochem/CropReprPoolsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ subroutine crop_repr_pools_init()
end if

nrepr = nrepr_grain + nrepr_structure
! matrixcn works with nrepr = 1 only
if (use_matrixcn .and. nrepr != 1) then
call endrun(msg="ERROR: nrepr should be 1 when use_matrixcn = .true."//errMsg(sourcefile, __LINE__))
end if
allocate(repr_hist_fnames(nrepr))
allocate(repr_rest_fnames(nrepr))
allocate(repr_longnames(nrepr))
Expand Down

0 comments on commit 18e63e3

Please sign in to comment.