Skip to content

Commit f99b479

Browse files
committed
few fortran fixes from code review
Signed-off-by: Thomas Naughton <[email protected]>
1 parent bdfc919 commit f99b479

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

ompi/mpi/fortran/mpif-h/remove_error_code_f.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ OMPI_GENERATE_F77_BINDINGS (MPI_REMOVE_ERROR_CODE,
7070
void ompi_remove_error_code_f(MPI_Fint *errorcode, MPI_Fint *ierr)
7171
{
7272
int ierr_c;
73+
OMPI_SINGLE_NAME_DECL(errorcode);
7374

7475
ierr_c = PMPI_Remove_error_code(OMPI_FINT_2_INT(*errorcode));
7576

ompi/mpi/fortran/mpif-h/remove_error_string_f.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#include "ompi_config.h"
2424

2525
#include "ompi/mpi/fortran/mpif-h/bindings.h"
26-
#include "ompi/mpi/fortran/base/constants.h"
27-
#include "ompi/mpi/fortran/base/fortran_base_strings.h"
28-
#include "ompi/communicator/communicator.h"
2926

3027
#if OMPI_BUILD_MPI_PROFILING
3128
#if OPAL_HAVE_WEAK_SYMBOLS

ompi/mpi/fortran/use-mpi-f08/remove_class_f08.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
subroutine MPI_Remove_error_class_f08(errorclass,ierror)
1414
use :: ompi_mpifh_bindings, only : ompi_remove_error_class_f
1515
implicit none
16-
INTEGER, INTENT(OUT) :: errorclass
16+
INTEGER, INTENT(IN) :: errorclass
1717
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
1818
integer :: c_ierror
1919

ompi/mpi/fortran/use-mpi-f08/remove_code_f08.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
subroutine MPI_Remove_error_code_f08(errorcode,ierror)
1414
use :: ompi_mpifh_bindings, only : ompi_remove_error_code_f
1515
implicit none
16-
INTEGER, INTENT(OUT) :: errorcode
16+
INTEGER, INTENT(IN) :: errorcode
1717
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
1818
integer :: c_ierror
1919

0 commit comments

Comments
 (0)