Skip to content

Commit

Permalink
Fixed MPI wrong-communicator error for free-boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
landreman committed Jul 19, 2023
1 parent e9d6d94 commit 433cc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fortran_src/reinit.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SUBROUTINE reinit
mgrid_path_old
USE init_geometry
USE mpi_params, ONLY: MPI_COMM_MYWORLD
USE parallel_vmec_module, ONLY: FinalizeRunVmec
USE parallel_vmec_module, ONLY: FinalizeRunVmec, RUNVMEC_COMM_WORLD
USE parallel_vmec_module, ONLY: FinalizeSurfaceComm

IMPLICIT NONE
Expand Down Expand Up @@ -134,7 +134,7 @@ SUBROUTINE reinit
IF (lfreeb) THEN
CALL free_mgrid(iflag)
mgrid_path_old = " "
CALL read_mgrid(mgrid_file,extcur,nzeta,nfp,.false.,iflag,MPI_COMM_MYWORLD)
CALL read_mgrid(mgrid_file,extcur,nzeta,nfp,.false.,iflag,RUNVMEC_COMM_WORLD)
END IF
! PARSE NS_ARRAY
nsin = MAX (3, nsin)
Expand Down

0 comments on commit 433cc45

Please sign in to comment.