fort.F90 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. subroutine mpi_init(ierror)
  2. implicit none
  3. include "mpif.h"
  4. integer fint(2)
  5. logical flog(2)
  6. real freal(2)
  7. double precision fdub(2)
  8. complex fcomp(2)
  9. integer status(MPI_STATUS_SIZE)
  10. integer ierror
  11. !!
  12. !! Pass values from mpif.h to the C side
  13. !! to check for consistency mpi.h and hardware sizes.
  14. !!
  15. call mpi_init_fort( MPI_COMM_WORLD, &
  16. MPI_ANY_SOURCE, MPI_ANY_TAG, &
  17. MPI_PROC_NULL, MPI_ROOT, &
  18. MPI_COMM_NULL, MPI_REQUEST_NULL, &
  19. MPI_GROUP_NULL, MPI_GROUP_EMPTY, &
  20. MPI_UNDEFINED, &
  21. MPI_MAX_ERROR_STRING, &
  22. MPI_MAX_PROCESSOR_NAME, &
  23. MPI_STATUS_SIZE, &
  24. MPI_SOURCE, MPI_TAG, MPI_ERROR, &
  25. status, status(MPI_SOURCE), &
  26. status(MPI_TAG), status(MPI_ERROR), &
  27. MPI_INTEGER, fint(1), fint(2), &
  28. MPI_LOGICAL, flog(1), flog(2), &
  29. MPI_REAL, freal(1), freal(2), &
  30. MPI_DOUBLE_PRECISION, fdub(1), fdub(2), &
  31. MPI_COMPLEX, fcomp(1), fcomp(2), &
  32. IERROR )
  33. return
  34. end