DISPATCH
mpi_mod Module Reference

Data Types

type  mpi_counter_t
 
type  mpi_t
 

Variables

type(mpi_t), public mpi
 

Detailed Description

Id
a35de29b50d29cead00bbb68266e199dd78e3c86

Basic MPI calls; initialization, end, barriers, asserts, wallclock, ...

To make use of this module, make sure it is compiled together with your code, using either the Makefile and the 'make' command, or compiling manually, with

mpi = ../../../../../mpi # or wherever mpifort -c $mpi/mpi_mod.f90 # compiler mpi_mod.f90 mpifort -c $mpi/mpi_... # add any other module your need mpifort -c your_code.f90 # compile your code mpifort *.o -o your_code.x # link together into your_code.x

In your_code.f90 you add lines such as:

USE mpi_mod ! makes the mpi% object available ... call mpiinit ! initializes the mpiobject ... if (mpirank==0) print *, 'this will be printed only on MPI process 0' ... call mpiend ! closes MPI

Too see which variables and procedures are inside mpi%, just look below!