-
Notifications
You must be signed in to change notification settings - Fork 11
depends on light hermes #49
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,7 @@ Module FVdycoreCubed_GridComp | |
| HYDROSTATIC => FV_HYDROSTATIC, & | ||
| fv_getUpdraftHelicity, & | ||
| ADIABATIC, SW_DYNAMICS, AdvCore_Advection | ||
| use m_topo_remap, only: dyn_topo_remap | ||
| use shared_topo_remap, only: dyn_topo_remap | ||
| use CubeGridPrototype, only: register_grid_and_regridders | ||
|
|
||
| ! !PUBLIC MEMBER FUNCTIONS: | ||
|
|
@@ -7455,6 +7455,7 @@ subroutine Coldstart(gc, import, export, clock, rc) | |
| type (ESMF_FieldBundle) :: TRADV_BUNDLE | ||
| character(len=ESMF_MAXSTR) :: FIELDNAME | ||
| character(len=ESMF_MAXSTR) :: STRING | ||
| character(len=ESMF_MAXSTR) :: eta_rc_file | ||
| real(REAL8), parameter :: r0_6=0.6 | ||
| real(REAL8), parameter :: r1_0=1.0 | ||
|
|
||
|
|
@@ -7578,7 +7579,14 @@ subroutine Coldstart(gc, import, export, clock, rc) | |
| bk_is_missing = .true. | ||
| endif | ||
|
|
||
| if (ak_is_missing .or. bk_is_missing) call set_eta(km, ls, ptop, pint, AK, BK) | ||
| if (ak_is_missing .or. bk_is_missing) 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. This duplicates logic above. It should be moved into an internal procedure and then just called from the two locations.
Contributor
Author
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. The interfaces are different. I am not sure how to avoid the logic. Since it is already moved to init(), it is not a big issue. |
||
| call MAPL_GetResource(MAPL, eta_rc_file, label='ETA_RC_FILE:', default = 'None', rc = status) | ||
| if( trim(eta_rc_file) == 'None' ) then | ||
| call set_eta(km, ls, ptop, pint, AK, BK) | ||
| else | ||
| call get_eta(trim(eta_rc_file), ptop, pint, AK, BK) | ||
| endif | ||
| endif | ||
|
|
||
| _ASSERT(ANY(AK /= 0.0) .or. ANY(BK /= 0.0),'needs informative message') | ||
| do L=lbound(PE,3),ubound(PE,3) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,6 +78,7 @@ program interp_restarts | |
| integer :: p_split, npx, npy, npz, ivar, lcnt_var, iq0 | ||
| integer :: n_args,n_files,nlevs,nedges,ifile,nlev,n_output,nfv_vars | ||
| character(len=ESMF_MAXPATHLEN), allocatable :: extra_files(:),extra_output(:) | ||
| character(len=ESMF_MAXPATHLEN) :: eta_rc_file | ||
| type(fv_rst), pointer :: rst_files(:) => null() | ||
| type(ArrDescr) :: ArrDes | ||
| integer :: info | ||
|
|
@@ -114,6 +115,7 @@ program interp_restarts | |
| n_readers=1 | ||
| ihydro = 1 | ||
| scale_rst = .true. | ||
| eta_rc_file = 'None' | ||
| do i=1,n_args | ||
| call get_command_argument(i,str) | ||
| select case(trim(str)) | ||
|
|
@@ -177,6 +179,8 @@ program interp_restarts | |
| read(astr,*)schmidt_parameters(2) | ||
| call get_command_argument(i+3,astr) | ||
| read(astr,*)schmidt_parameters(3) | ||
| case('-eta_file') | ||
| call get_command_argument(i+1,eta_rc_file) | ||
| end select | ||
| end do | ||
|
|
||
|
|
@@ -326,7 +330,11 @@ program interp_restarts | |
|
|
||
| allocate ( r8_ak(npz+1) ) | ||
| allocate ( r8_bk(npz+1) ) | ||
| call set_eta(npz,ks,ptop,pint,r8_ak,r8_bk) | ||
| if (trim(eta_rc_file) == 'None') 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. and duplicated again here ... |
||
| call set_eta(npz,ks,ptop,pint,r8_ak,r8_bk) | ||
| else | ||
| call get_eta(trim(eta_rc_file), ptop,pint,r8_ak,r8_bk) | ||
| endif | ||
| FV_Atm(1)%ak = r8_ak | ||
| FV_Atm(1)%bk = r8_bk | ||
| deallocate ( r8_ak,r8_bk ) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.