13.07.2015 Views

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

A Brief Introduction to Fortran 77 - Polaris

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

As an example, consider the following code segmentc = sin (d)forall i=1 <strong>to</strong> na(i) = b(i) + cend foralle = a(20)+ a(15)A simple OpenMP implementation would take the formc = sin(d)c$omp parallel private(i,il,iu)call get_limits(n,il,iu,* omp_get_num_threads(),* omp_get_thread_num())do i=il,iua(i) = b(i) + cend doc$omp end parallele = a(20) + a(15)© 1998 David A. Padua46 of 118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!