/[escript]/branches/arrayview_from_1695_trunk/escript/src/Utils.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/Utils.cpp

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

trunk/escript/src/Utils.cpp revision 1620 by ksteube, Fri Jun 27 02:30:18 2008 UTC branches/arrayview_from_1695_trunk/escript/src/Utils.cpp revision 1781 by jfenwick, Thu Sep 11 05:03:14 2008 UTC
# Line 24  Line 24 
24  #include <mpi.h>  #include <mpi.h>
25  #endif  #endif
26    
27    #ifdef  _WIN32
28    #include <WinSock2.h>
29    #endif
30    
31  namespace escript {  namespace escript {
32    
33  int getSvnVersion()  int getSvnVersion()
# Line 65  void printParallelThreadCnt() Line 69  void printParallelThreadCnt()
69    int mpi_iam=0, mpi_num=1;    int mpi_iam=0, mpi_num=1;
70    char hname[64];    char hname[64];
71    
72    #ifdef HAVE_GETHOSTNAME
73    gethostname(hname, 64);    gethostname(hname, 64);
74    #else
75      strcpy(hname, "unknown host");
76    #endif
77    
78    #ifdef PASO_MPI    #ifdef PASO_MPI
79    MPI_Comm_rank(MPI_COMM_WORLD, &mpi_iam);    MPI_Comm_rank(MPI_COMM_WORLD, &mpi_iam);
80    MPI_Comm_size(MPI_COMM_WORLD, &mpi_num);    MPI_Comm_size(MPI_COMM_WORLD, &mpi_num);
81    #endif    #endif
82    
   #ifdef _OPENMP  
83    #pragma omp parallel    #pragma omp parallel
   #endif  
84    {    {
85      int omp_iam=0, omp_num=1;      int omp_iam=0, omp_num=1;
86      #ifdef _OPENMP      #ifdef _OPENMP

Legend:
Removed from v.1620  
changed lines
  Added in v.1781

  ViewVC Help
Powered by ViewVC 1.1.26