SPEED
INITIALIZATION.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine initialization (comm, np, id, ierr)
 Inizialization for parallel computation.
 

Function/Subroutine Documentation

◆ initialization()

subroutine initialization ( integer*4  comm,
integer*4  np,
integer*4  id,
integer*4  ierr 
)

Inizialization for parallel computation.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]commmpi common world
[in]npnumber of mpi processes
[in]idmpi processor index
[out]mpierror

Definition at line 28 of file INITIALIZATION.f90.

29
30 implicit none
31 include 'SPEED.MPI'
32
33 integer*4 :: comm,np,id,ierr
34
35 call mpi_init(ierr)
36 call mpi_comm_rank(comm,id,ierr)
37 call mpi_comm_size(comm,np,ierr)
38
39 if (ierr.ne.0) then
40 write(*,*)'MPI Initialization error - proc : ',id
41 endif
42
43 speed_tag = speed_tag_min
44
45 return
46