SECTIONS - OpenMP Tutorial


!$OMP PARALLEL
   !$OMP SECTIONS
      !$OMP SECTION
         call init_field(a)
      !$OMP SECTION
        call check_grid(x)
   !$OMP END SECTIONS
!$OMP END PARALLEL


#pragma omp parallel
  #pragma omp sections
    #pragma omp section
      init_field(a);
    #pragma omp section
      check_grid(x);
  #pragma omp end sections
#pragma omp end parallel