/[escript]/temp/paso/src/Paso_MPI.h
ViewVC logotype

Diff of /temp/paso/src/Paso_MPI.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 969 by ksteube, Tue Feb 13 23:02:23 2007 UTC revision 971 by ksteube, Wed Feb 14 04:40:49 2007 UTC
# Line 4  Line 4 
4  #include "Common.h"  #include "Common.h"
5    
6  #ifdef PASO_MPI  #ifdef PASO_MPI
7    
8  #include "mpi_C.h"  #include "mpi_C.h"
 #endif  
9    
10  #define PASO_MPI_TODO   { fprintf( stdout, "\nTODO : %s:%d\n", __FILE__, __LINE__); MPI_Finalize(); exit(1); }  #define PASO_MPI_TODO   { fprintf( stdout, "\nTODO : %s:%d\n", __FILE__, __LINE__); MPI_Finalize(); exit(1); }
11  #define PASO_INFO_ERRORMSG( err, msg ) { char _msg__[256]; sprintf( _msg__, "%s : %s:%d\n", msg, __FILE__, __LINE__ ); Paso_setError( err, _msg__ );  }  #define PASO_INFO_ERRORMSG( err, msg ) { char _msg__[256]; sprintf( _msg__, "%s : %s:%d\n", msg, __FILE__, __LINE__ ); Paso_setError( err, _msg__ );  }
# Line 15  struct Paso_MPIInfo{ Line 15  struct Paso_MPIInfo{
15    dim_t reference_counter;    dim_t reference_counter;
16    int size;    int size;
17    int rank;    int rank;
 #ifdef PASO_MPI  
18    MPI_Comm comm;    MPI_Comm comm;
 #endif  
19  };  };
20    
21  typedef struct Paso_MPIInfo Paso_MPIInfo;  typedef struct Paso_MPIInfo Paso_MPIInfo;
22    
23  /* Function prototypes */  /* Function prototypes */
 #ifdef PASO_MPI  
24  Paso_MPIInfo* Paso_MPIInfo_alloc( MPI_Comm comm );  Paso_MPIInfo* Paso_MPIInfo_alloc( MPI_Comm comm );
 #endif  
25  void          Paso_MPIInfo_dealloc( Paso_MPIInfo* );  void          Paso_MPIInfo_dealloc( Paso_MPIInfo* );
26  Paso_MPIInfo *Paso_MPIInfo_getReference( Paso_MPIInfo* in );  Paso_MPIInfo *Paso_MPIInfo_getReference( Paso_MPIInfo* in );
27  int           Paso_MPI_initialized( void );  int           Paso_MPI_initialized( void );
28    
29    #endif // INC_PASO_MPI
30    
31  #endif // PASO_MPI  #endif // PASO_MPI

Legend:
Removed from v.969  
changed lines
  Added in v.971

  ViewVC Help
Powered by ViewVC 1.1.26