~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to pythonMPI/src/ScriptMPI.cpp

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
 
15
15
#include <Python.h>
16
 
#ifdef PASO_MPI
 
16
#ifdef ESYS_MPI
17
17
#include <mpi.h>
18
18
#endif
19
19
#include <iostream>
20
20
#include <stdexcept>
21
21
 
22
22
extern "C"{
23
 
#include "paso/Paso_MPI.h"
 
23
#include "esysUtils/Esys_MPI.h"
24
24
}
25
 
#ifdef PASO_MPI
 
25
#ifdef ESYS_MPI
26
26
 
27
27
int main( int argc, char **argv ) {
28
28
  int status = 0;
29
29
  int provided;
30
 
  Paso_MPIInfo *mpi_info=NULL;
 
30
  Esys_MPIInfo *mpi_info=NULL;
31
31
  try
32
32
  {
33
33
    /*
39
39
      std::cerr << argv[0] << ": MPI_Init failed, exiting." << std::endl;
40
40
      return status;
41
41
    }
42
 
    mpi_info = Paso_MPIInfo_alloc( MPI_COMM_WORLD );
 
42
    mpi_info = Esys_MPIInfo_alloc( MPI_COMM_WORLD );
43
43
 
44
44
    if( mpi_info->rank )
45
45
    {
77
77
     */
78
78
        MPI_Finalize();
79
79
    }
80
 
    Paso_MPIInfo_free( mpi_info );
 
80
    Esys_MPIInfo_free( mpi_info );
81
81
  }
82
82
  catch (std::runtime_error &e)
83
83
  {
103
103
 
104
104
#else
105
105
int main( int argc, char **argv ) {
106
 
        printf( "Esys must be compiled with PASO_MPI defined to make the MPI version available\n\n" );
 
106
        printf( "Esys must be compiled with ESYS_MPI defined to make the MPI version available\n\n" );
107
107
        return 0;
108
108
}
109
109
#endif