Skip to content

Commit 0e5ad5c

Browse files
committed
do not use error for mpi runner search
1 parent 0c68c36 commit 0e5ad5c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/fpm_meta.f90

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ subroutine init_mpi_from_wrappers(this,compiler,mpilib,fort_wrapper,c_wrapper,cx
976976
type(error_t), allocatable, intent(out) :: error
977977

978978
type(version_t) :: version
979+
type(error_t), allocatable :: runner_error
979980

980981
! Cleanup structure
981982
call destroy(this)
@@ -1014,11 +1015,8 @@ subroutine init_mpi_from_wrappers(this,compiler,mpilib,fort_wrapper,c_wrapper,cx
10141015
end if
10151016

10161017
!> Add default run command, if present
1017-
this%run_command = mpi_wrapper_query(mpilib,fort_wrapper,'runner',verbose,error)
1018-
this%has_run_command = (len_trim(this%run_command)>0) .and. .not.allocated(error)
1019-
1020-
!> Do not trigger a fatal error here if run command is missing
1021-
if (allocated(error)) deallocate(error)
1018+
this%run_command = mpi_wrapper_query(mpilib,fort_wrapper,'runner',verbose,runner_error)
1019+
this%has_run_command = (len_trim(this%run_command)>0) .and. .not.allocated(runner_error)
10221020

10231021
contains
10241022

0 commit comments

Comments
 (0)