|
Pakman
|
#include <iostream>#include <string>#include <mpi.h>#include "PakmanMPIWorker.hpp"
Go to the source code of this file.
Functions | |
| int | my_simulator (int argc, char *argv[], const std::string &input_string, std::string &output_string) |
| int | main (int argc, char *argv[]) |
This program is a dummy MPI simulator that will always return a user-specified output and error code, regardless of the input to the simulator. If no arguments are given, the MPI simulator outputs "accept" and returns the error code 0.
Definition in file mpi-simulator-cpp.cc.
| int my_simulator | ( | int | argc, |
| char * | argv[], | ||
| const std::string & | input_string, | ||
| std::string & | output_string | ||
| ) |
Run dummy simulation
By default, this function assigns the string "accept" to output_string and returns the error code 0 (which means no error has occurred). The output string and error code can be altered by optional arguments given through argc and argv.
| argc | number of command-line arguments. |
| argv | array containing command-line arguments. |
| input_string | input to simulator |
| output_string | output from simulator |
Definition at line 29 of file mpi-simulator-cpp.cc.