-
Notifications
You must be signed in to change notification settings - Fork 169
upgraded OPAC aerosol with more advanced MERRA2 aerosol #594
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
Merged
+78
−66
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b33d199
established merra2 and a bug fixed in radiation_aerosols.f
AnningCheng-NOAA 79ae254
update merra2 before a new pull request
AnningCheng-NOAA 958aaae
resolved conflicts when push merra2
AnningCheng-NOAA b55e382
resolved the conflicts in GFS_phys_time_vary.fv3.F90
AnningCheng-NOAA 7adf202
remove a space in aerinterp.F90 and aerclm_def.f
AnningCheng-NOAA f34b1b0
remove aerclm_def.F in IPD and add it in CCPP
AnningCheng-NOAA b6ef6c3
Merge remote-tracking branch 'upstream/master' into merra2
AnningCheng-NOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ module GFS_phys_time_vary | |
| use h2ointerp, only : read_h2odata, setindxh2o, h2ointerpol | ||
|
|
||
| use aerclm_def, only : aerin, aer_pres, ntrcaer, ntrcaerm | ||
| use aerinterp, only : read_aerdata, setindxaer, aerinterpol | ||
| use aerinterp, only : read_aerdata, setindxaer, aerinterpol, read_aerdataf | ||
|
|
||
| use iccn_def, only : ciplin, ccnin, ci_pres | ||
| use iccninterp, only : read_cidata, setindxci, ciinterpol | ||
|
|
@@ -166,7 +166,7 @@ subroutine GFS_phys_time_vary_init ( | |
| integer, intent(out) :: errflg | ||
|
|
||
| ! Local variables | ||
| integer :: i, j, ix, vegtyp | ||
| integer :: i, j, ix, vegtyp, iamin, iamax, jamin, jamax | ||
| real(kind_phys) :: rsnow | ||
|
|
||
| !--- Noah MP | ||
|
|
@@ -182,12 +182,17 @@ subroutine GFS_phys_time_vary_init ( | |
| errflg = 0 | ||
|
|
||
| if (is_initialized) return | ||
| iamin=999 | ||
| iamax=-999 | ||
| jamin=999 | ||
| jamax=-999 | ||
|
|
||
| !$OMP parallel num_threads(nthrds) default(none) & | ||
| !$OMP shared (me,master,ntoz,h2o_phys,im,nx,ny,idate) & | ||
| !$OMP shared (xlat_d,xlon_d,imap,jmap,errmsg,errflg) & | ||
| !$OMP shared (levozp,oz_coeff,oz_pres,ozpl) & | ||
| !$OMP shared (levh2o,h2o_coeff,h2o_pres,h2opl) & | ||
| !$OMP shared (iamin, iamax, jamin, jamax) & | ||
| !$OMP shared (iaerclm,ntrcaer,aer_nm,iflip,iccn) & | ||
| !$OMP shared (jindx1_o3,jindx2_o3,ddy_o3,jindx1_h,jindx2_h,ddy_h) & | ||
| !$OMP shared (jindx1_aer,jindx2_aer,ddy_aer,iindx1_aer,iindx2_aer,ddx_aer) & | ||
|
|
@@ -300,16 +305,20 @@ subroutine GFS_phys_time_vary_init ( | |
| call setindxh2o (im, xlat_d, jindx1_h, jindx2_h, ddy_h) | ||
| endif | ||
|
|
||
| !$OMP section | ||
| !> - Call setindxaer() to initialize aerosols data | ||
| !$OMP section | ||
| if (iaerclm) then | ||
| call setindxaer (im, xlat_d, jindx1_aer, & | ||
| jindx2_aer, ddy_aer, xlon_d, & | ||
| iindx1_aer, iindx2_aer, ddx_aer, & | ||
| me, master) | ||
| iamin=min(minval(iindx1_aer), iamin) | ||
| iamax=max(maxval(iindx2_aer), iamax) | ||
| jamin=min(minval(jindx1_aer), jamin) | ||
| jamax=max(maxval(jindx2_aer), jamax) | ||
| endif | ||
|
|
||
| !$OMP section | ||
|
|
||
| !> - Call setindxci() to initialize IN and CCN data | ||
| if (iccn == 1) then | ||
| call setindxci (im, xlat_d, jindx1_ci, & | ||
|
|
@@ -367,6 +376,10 @@ subroutine GFS_phys_time_vary_init ( | |
| !$OMP end sections | ||
|
|
||
| !$OMP end parallel | ||
| if (iaerclm) then | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is ok to leave it here for the moment, given that I will be working on speeding up the code in |
||
| call read_aerdataf (iamin, iamax, jamin, jamax, me,master,iflip, & | ||
| idate,errmsg,errflg) | ||
| endif | ||
|
|
||
| if (lsm == lsm_noahmp) then | ||
| if (all(tvxy < zero)) then | ||
|
|
@@ -804,10 +817,10 @@ subroutine GFS_phys_time_vary_timestep_init ( | |
|
|
||
| !> - Call ciinterpol() to make IN and CCN data interpolation | ||
| if (iccn == 1) then | ||
| call ciinterpol (me, im, idate, fhour, & | ||
| jindx1_ci, jindx2_ci, & | ||
| ddy_ci, iindx1_ci, & | ||
| iindx2_ci, ddx_ci, & | ||
| call ciinterpol (me, im, idate, fhour, & | ||
| jindx1_ci, jindx2_ci, & | ||
| ddy_ci, iindx1_ci, & | ||
| iindx2_ci, ddx_ci, & | ||
| levs, prsl, in_nm, ccn_nm) | ||
| endif | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.