Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes land BGC computation for a threaded simulation #1468

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions components/clm/src/biogeochem/CNAllocationMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3883,8 +3883,8 @@ subroutine CNAllocation3_PlantCNPAlloc (bounds , &

else ! use_nitrif_denitrif

temp_sminn_to_plant = sminn_to_plant
temp_sminp_to_plant = sminp_to_plant
temp_sminn_to_plant(bounds%begc:bounds%endc) = sminn_to_plant(bounds%begc:bounds%endc)
temp_sminp_to_plant(bounds%begc:bounds%endc) = sminp_to_plant(bounds%begc:bounds%endc)

call p2c(bounds,num_soilc,filter_soilc, &
sminn_to_npool(bounds%begp:bounds%endp), &
Expand Down Expand Up @@ -3959,8 +3959,8 @@ subroutine CNAllocation3_PlantCNPAlloc (bounds , &

if( .not.cnallocate_carbonphosphorus_only().and. .not.cnallocate_carbonnitrogen_only().and. .not.cnallocate_carbon_only() )then

temp_sminn_to_plant = sminn_to_plant
temp_sminp_to_plant = sminp_to_plant
temp_sminn_to_plant(bounds%begc:bounds%endc) = sminn_to_plant(bounds%begc:bounds%endc)
temp_sminp_to_plant(bounds%begc:bounds%endc) = sminp_to_plant(bounds%begc:bounds%endc)

call p2c(bounds,num_soilc,filter_soilc, &
sminn_to_npool(bounds%begp:bounds%endp), &
Expand Down Expand Up @@ -3996,7 +3996,7 @@ subroutine CNAllocation3_PlantCNPAlloc (bounds , &

if( cnallocate_carbonnitrogen_only() )then

temp_sminp_to_plant = sminp_to_plant
temp_sminp_to_plant(bounds%begc:bounds%endc) = sminp_to_plant(bounds%begc:bounds%endc)

call p2c(bounds,num_soilc,filter_soilc, &
sminp_to_ppool(bounds%begp:bounds%endp), &
Expand Down