Skip to content

Commit b870b8b

Browse files
committed
CropPhase(): Remove associate().
1 parent 16b0801 commit b870b8b

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/biogeochem/CNPhenologyMod.F90

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,21 +2646,17 @@ subroutine CropPhase(bounds, num_pcropp, filter_pcropp, &
26462646
!-----------------------------------------------------------------------
26472647
SHR_ASSERT_ALL_FL((ubound(crop_phase) == [bounds%endp]), sourcefile, __LINE__)
26482648

2649-
associate( &
2650-
croplive => crop_inst%croplive_patch , & ! Input: [logical (:) ] Flag, true if planted, not harvested
2651-
hui => crop_inst%hui_patch , & ! Input: [real(r8) (:) ] gdd since planting (gddplant)
2652-
leafout => crop_inst%gddtsoi_patch , & ! Input: [real(r8) (:) ] gdd from top soil layer temperature
2653-
huileaf => cnveg_state_inst%huileaf_patch , & ! Input: [real(r8) (:) ] heat unit index needed from planting to leaf emergence
2654-
huigrain => cnveg_state_inst%huigrain_patch & ! Input: [real(r8) (:) ] same to reach vegetative maturity
2655-
)
2656-
26572649
do fp = 1, num_pcropp
26582650
p = filter_pcropp(fp)
2659-
call CropPhase_OnePatch(crop_phase(p), croplive(p), leafout(p), hui(p), huileaf(p), huigrain(p))
2651+
call CropPhase_OnePatch( &
2652+
crop_phase(p), &
2653+
crop_inst%croplive_patch(p), &
2654+
crop_inst%gddtsoi_patch(p), &
2655+
crop_inst%hui_patch(p), &
2656+
cnveg_state_inst%huileaf_patch(p), &
2657+
cnveg_state_inst%huigrain_patch(p))
26602658
end do
26612659

2662-
end associate
2663-
26642660
end subroutine CropPhase
26652661

26662662

0 commit comments

Comments
 (0)