Anonymous
public text v1 · immutable#include <mpi.h>
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc,char **argv)
{
int rank,size;
double a,b,c,p,k;
double wynik;
std::ifstream param_file;
MPI::MPI_Init(&argc,&argv);
MPI::MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI::MPI_Comm_size(MPI_COMM_WORLD, &size);
param_file.open(argv[1]);
file_param >> a >> b >> c >> p >> k;
std::cout << a << b << c << p << k;
}