MPI_first_template
Functions
greetings.cpp File Reference
#include "greetings.h"
#include <cassert>
#include <cstring>
#include <iostream>
#include <mpi.h>
#include <string>

Go to the source code of this file.

Functions

void greetings (MPI_Comm const &icomm)
 
void greetings_cpp (MPI_Comm const &icomm)
 

Function Documentation

◆ greetings()

void greetings ( MPI_Comm const &  icomm)

Each process finds out its host, sends this information to root process 0 which prints this information for each process.

Parameters
[in]icommthe MPI process group that is used.

Definition at line 12 of file greetings.cpp.

◆ greetings_cpp()

void greetings_cpp ( MPI_Comm const &  icomm)

Definition at line 50 of file greetings.cpp.