All pastes #741073 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-18 13:20 UTC
rendered paste body
#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;
    
}