/[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

revision 1696 by jfenwick, Mon Aug 11 03:33:40 2008 UTC revision 1781 by jfenwick, Thu Sep 11 05:03:14 2008 UTC
# Line 69  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.1696  
changed lines
  Added in v.1781

  ViewVC Help
Powered by ViewVC 1.1.26