Skip to content

Commit 1720638

Browse files
committed
* In ./src/core_init_atmosphere/mpas_init_atm_thompson_aerosols, get the dimension of
index_nifa and index_nwfa from the pool lbc_state instead of state. Corrected the call to subroutine init_atm_thompson_aerosols_lbc accordingly. * In ./src/core_init_atmosphere/mpas_init_atm_thompson_aerosols.F, replaced the index name of nifa and nwfa from index_nifa (index_nwfa) to index_lbc_nifa (index_lbc_nwfa) from the pool lbc_state.
1 parent 942d402 commit 1720638

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/core_init_atmosphere/mpas_init_atm_cases.F

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ subroutine init_atm_setup_case(domain, stream_manager)
331331
diag, lbc_state, block_ptr % dimensions, block_ptr % configs)
332332

333333
call mpas_get_time(start_time, dateTimeString=timeStart)
334-
call init_atm_thompson_aerosols_lbc(timeString, timeStart, block_ptr, mesh, diag, state, lbc_state)
334+
call init_atm_thompson_aerosols_lbc(timeString, timeStart, block_ptr, mesh, diag, lbc_state)
335335

336336
block_ptr => block_ptr % next
337337
end do

src/core_init_atmosphere/mpas_init_atm_thompson_aerosols.F

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,12 @@ subroutine init_hinterp_gocart(block,mesh)
719719
end subroutine init_hinterp_gocart
720720

721721
!=================================================================================================================
722-
subroutine init_atm_thompson_aerosols_lbc(timestamp,timestart,block,mesh,diag,state,lbc_state)
722+
subroutine init_atm_thompson_aerosols_lbc(timestamp,timestart,block,mesh,diag,lbc_state)
723723
!=================================================================================================================
724724

725725
!input arguments:
726726
character(len=StrKIND),intent(in):: timestart,timestamp
727727
type(mpas_pool_type),intent(in):: diag
728-
type(mpas_pool_type),intent(in):: state
729728

730729
!inout arguments:
731730
type(block_type),intent(inout),target:: block
@@ -771,8 +770,8 @@ subroutine init_atm_thompson_aerosols_lbc(timestamp,timestart,block,mesh,diag,st
771770
call mpas_pool_get_dimension(mesh,'nVertLevels' ,nVertLevels )
772771
call mpas_pool_get_dimension(mesh,'nMonths' ,nMonths )
773772

774-
call mpas_pool_get_dimension(state,'index_nifa',index_nifa)
775-
call mpas_pool_get_dimension(state,'index_nwfa',index_nwfa)
773+
call mpas_pool_get_dimension(lbc_state,'index_lbc_nifa',index_nifa)
774+
call mpas_pool_get_dimension(lbc_state,'index_lbc_nwfa',index_nwfa)
776775

777776
call mpas_pool_get_array(diag,'pressure_base',pressure)
778777

0 commit comments

Comments
 (0)