Skip to content

Commit

Permalink
Restrict photolysis initialization prints to single thread
Browse files Browse the repository at this point in the history
Signed-off-by: Lizzie Lundgren <[email protected]>
  • Loading branch information
lizziel committed Feb 28, 2024
1 parent bba809e commit cbb5703
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chemistry/geoschem/chemistry.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@ subroutine chem_init(phys_state, pbuf2d)
ENDIF

DO I = BEGCHUNK, ENDCHUNK
! Restrict prints to one thread only
Input_Opt%amIRoot = (MasterProc .AND. (I == BEGCHUNK))

CALL GC_Init_StateObj( Diag_List = Diag_List, & ! Diagnostic list obj
Expand Down Expand Up @@ -1579,12 +1580,16 @@ subroutine chem_init(phys_state, pbuf2d)
IF ( Input_Opt%ITS_A_FULLCHEM_SIM .or. &
Input_Opt%ITS_AN_AEROSOL_SIM ) THEN
DO I = BEGCHUNK, ENDCHUNK
! Restrict prints to one thread only
Input_Opt%amIRoot = (MasterProc .AND. (I == BEGCHUNK))

CALL Init_Photolysis( Input_Opt = Input_Opt, &
State_Grid = State_Grid(I), &
State_Chm = State_Chm(I), &
State_Diag = State_Diag(I), &
RC = RC )
ENDDO
Input_Opt%amIRoot = MasterProc

IF ( RC /= GC_SUCCESS ) THEN
ErrMsg = 'Error encountered in "Init_Photolysis"!'
Expand Down

0 comments on commit cbb5703

Please sign in to comment.