Fortran90 derived types with mpi, alignment issue?
问题 I got problem with the following basic code: program foo use mpi implicit none type bartype real(8) :: x integer :: i end type bartype integer :: mpi_bar_type integer :: & count=2, & blocklengths(2)=(/1,1/), & types(2)=(/mpi_double_precision, & mpi_integer/) integer(kind=mpi_address_kind) :: displs(2) type(bartype) :: bar, bararray(4) integer :: rank, ierr, i, test(4), addr0 call mpi_init(ierr) call mpi_comm_rank(mpi_comm_world, rank, ierr) call mpi_get_address(bar, addr0) call mpi_get