Skip to content

Commit

Permalink
USE_PDAF: mpi_init call in cime_comp_mod switched off for PDAF (E…
Browse files Browse the repository at this point in the history
…SCOMP#24)

Otherwise, an error for duplicate calling of `mpi_init` is thrown,
since PDAF calls `mpi_init` in its main routine `pdaf_terrsysmp.F90`.

Co-authored-by: Johannes Keller <jo.keller@fz-juelich.de>
  • Loading branch information
jjokella and jjokella authored Jan 11, 2024
1 parent 709eccf commit e41dc00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eclm/cime_comp_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,10 @@ subroutine cime_pre_init1(esmf_log_option)
integer :: driver_id, oas_comp_id
integer :: driver_comm

#ifndef USE_PDAF
call mpi_init(ierr)
call shr_mpi_chkerr(ierr,subname//' mpi_init')
#endif

#if defined(USE_OASIS)
call oasis_init_comp (oas_comp_id, 'eCLM', ierr)
Expand Down

0 comments on commit e41dc00

Please sign in to comment.