File: blacs_barr_.c

package info (click to toggle)
scalapack 2.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,300 kB
  • sloc: fortran: 338,514; ansic: 75,307; makefile: 1,385; sh: 56
file content (28 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "Bdef.h"

#if (INTFACE == C_CALL)
void Cblacs_barrier(int ConTxt, char *scope)
#else
F_VOID_FUNC blacs_barrier_(int *ConTxt, F_CHAR scope)
#endif
{
   char tscope;
   int ierr;
   BLACSCONTEXT *ctxt;

   tscope = F2C_CharTrans(scope);
   tscope = Mlowcase(tscope);
   MGetConTxt(Mpval(ConTxt), ctxt);
   switch(tscope)
   {
   case 'r':
      MPI_Barrier(ctxt->rscp.comm);
      break;
   case 'c':
      MPI_Barrier(ctxt->cscp.comm);
      break;
   case 'a':
      MPI_Barrier(ctxt->ascp.comm);
      break;
   }
}