diff --git a/phys/module_cu_g3.F b/phys/module_cu_g3.F index cf614c2492..87a933dd61 100644 --- a/phys/module_cu_g3.F +++ b/phys/module_cu_g3.F @@ -3122,7 +3122,8 @@ SUBROUTINE cup_forcing_ens_3d(closure_n,xland,aa0,aa1,xaa0,mbdt,dtime,ierr,ierr2 pcrit,acrit,acritt integer :: nall2,ixxx,irandom - integer, dimension (12) :: seed + integer, allocatable :: seed(:) + integer :: seed_size DATA PCRIT/850.,800.,750.,700.,650.,600.,550.,500.,450.,400., & @@ -3133,6 +3134,9 @@ SUBROUTINE cup_forcing_ens_3d(closure_n,xland,aa0,aa1,xaa0,mbdt,dtime,ierr,ierr2 DATA ACRITT/.203,.515,.521,.566,.625,.665,.659,.688, & .743,.813,.886,.947,1.138,1.377,1.896/ ! + call random_seed(size=seed_size) ! Get size of seed array. + allocate(seed(1:seed_size)) ! Allocate according to returned size + seed=0 seed(2)=j seed(3)=ktau