module modtest use MPI use decomp_2d implicit none contains subroutine inittest integer :: nx=64, ny=64, nz=64 !integer :: p_row=2, p_col=2 integer :: p_row=0, p_col=0 integer :: ierror call MPI_INIT(ierror) !call MPI_COMM_RANK(MPI_COMM_WORLD,nrank,ierr) !call MPI_COMM_SIZE(MPI_COMM_WORLD,nproc,ierr) !call decomp_2d_init(nx,ny,nz,p_row,p_col) call decomp_2d_init(nx,ny,nz,p_row,p_col) write(*,*) xstart write(*,*) ystart write(*,*) zstart write(*,*) xend write(*,*) yend write(*,*) zend write(*,*) xsize write(*,*) ysize write(*,*) zsize end subroutine inittest subroutine exittest integer :: ierror call decomp_2d_finalize call MPI_FINALIZE(ierror) end subroutine exittest end module modtest