File: testD.f90

package info (click to toggle)
opari 1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 720 kB
  • sloc: cpp: 2,005; ansic: 901; f90: 252; makefile: 132; sh: 73; fortran: 50
file content (28 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (5)
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
subroutine foo(b)
  logical b
  integer i

  !$POMP INST BEGIN(foo)
  i = 4
  if ( b ) then
    !$POMP INST ALTEND(foo)
    return
  end if

  !$OMP PARALLEL

    !$OMP INST BEGIN(phase1)

    !$OMP BARRIER

    !$OMP INST END(phase1)

  !$OMP END PARALLEL

  if ( b ) then
    !$POMP INST ALTEND(foo)
    return
  end if

  !$POMP INST END(foo)
end subroutine foo