forked from ESCOMP/CAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ed8390
commit 8bf2946
Showing
15 changed files
with
108 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1006,15 +1006,13 @@ subroutine aero_model_gasaerexch( loffset, ncol, lchnk, troplev, delt, reaction_ | |
real(r8), pointer :: fldcw(:,:) | ||
real(r8), pointer :: sulfeq(:,:,:) | ||
|
||
logical :: is_spcam_m2005 | ||
! | ||
! ... initialize nh3 | ||
! | ||
if ( nh3_ndx > 0 ) then | ||
nh3_beg = vmr(1:ncol,:,nh3_ndx) | ||
end if | ||
! | ||
is_spcam_m2005 = cam_physpkg_is('spcam_m2005') | ||
|
||
call pbuf_get_field(pbuf, dgnum_idx, dgnum) | ||
call pbuf_get_field(pbuf, dgnumwet_idx, dgnumwet ) | ||
|
@@ -1046,14 +1044,13 @@ subroutine aero_model_gasaerexch( loffset, ncol, lchnk, troplev, delt, reaction_ | |
! | ||
call qqcw2vmr( lchnk, vmrcw, mbar, ncol, loffset, pbuf ) | ||
|
||
if (.not. is_spcam_m2005) then ! regular CAM | ||
dvmrdt(:ncol,:,:) = vmr(:ncol,:,:) | ||
dvmrcwdt(:ncol,:,:) = vmrcw(:ncol,:,:) | ||
dvmrdt(:ncol,:,:) = vmr(:ncol,:,:) | ||
dvmrcwdt(:ncol,:,:) = vmrcw(:ncol,:,:) | ||
|
||
! aqueous chemistry ... | ||
|
||
if( has_sox ) then | ||
call setsox( & | ||
if( has_sox ) then | ||
call setsox( & | ||
ncol, & | ||
lchnk, & | ||
loffset, & | ||
|
@@ -1076,21 +1073,21 @@ subroutine aero_model_gasaerexch( loffset, ncol, lchnk, troplev, delt, reaction_ | |
aqso4_o3 & | ||
) | ||
|
||
do n = 1, ntot_amode | ||
l = lptr_so4_cw_amode(n) | ||
if (l > 0) then | ||
call outfld( trim(cnst_name_cw(l))//'AQSO4', aqso4(:ncol,n), ncol, lchnk) | ||
call outfld( trim(cnst_name_cw(l))//'AQH2SO4', aqh2so4(:ncol,n), ncol, lchnk) | ||
end if | ||
end do | ||
do n = 1, ntot_amode | ||
l = lptr_so4_cw_amode(n) | ||
if (l > 0) then | ||
call outfld( trim(cnst_name_cw(l))//'AQSO4', aqso4(:ncol,n), ncol, lchnk) | ||
call outfld( trim(cnst_name_cw(l))//'AQH2SO4', aqh2so4(:ncol,n), ncol, lchnk) | ||
end if | ||
end do | ||
|
||
call outfld( 'AQSO4_H2O2', aqso4_h2o2(:ncol), ncol, lchnk) | ||
call outfld( 'AQSO4_O3', aqso4_o3(:ncol), ncol, lchnk) | ||
call outfld( 'XPH_LWC', xphlwc(:ncol,:), ncol, lchnk ) | ||
call outfld( 'AQSO4_H2O2', aqso4_h2o2(:ncol), ncol, lchnk) | ||
call outfld( 'AQSO4_O3', aqso4_o3(:ncol), ncol, lchnk) | ||
call outfld( 'XPH_LWC', xphlwc(:ncol,:), ncol, lchnk ) | ||
|
||
endif | ||
endif | ||
|
||
! Tendency due to aqueous chemistry | ||
! Tendency due to aqueous chemistry | ||
dvmrdt = (vmr - dvmrdt) / delt | ||
dvmrcwdt = (vmrcw - dvmrcwdt) / delt | ||
do m = 1, gas_pcnst | ||
|
@@ -1102,15 +1099,6 @@ subroutine aero_model_gasaerexch( loffset, ncol, lchnk, troplev, delt, reaction_ | |
call outfld( name, wrk(:ncol), ncol, lchnk ) | ||
enddo | ||
|
||
else if (is_spcam_m2005) then ! SPCAM ECPP | ||
! when ECPP is used, aqueous chemistry is done in ECPP, | ||
! and not updated here. | ||
! Minghuai Wang, 2010-02 ([email protected]) | ||
! | ||
dvmrdt = 0.0_r8 | ||
dvmrcwdt = 0.0_r8 | ||
endif | ||
|
||
! do gas-aerosol exchange (h2so4, msa, nh3 condensation) | ||
|
||
if (ndx_h2so4 > 0) then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.