File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1223,10 +1223,9 @@ OpenMP
12231223
12241224`OpenMP <http://www.openmp.org/ >`_ should be compatible with
12251225non-openMP compilers. This can be enforced by prepending all
1226- OpenMP-specific calls by `!$ `. Regular compilers will consider these
1226+ OpenMP-specific calls by `` !$ ` `. Regular compilers will consider these
12271227lines as comments and ignore them. For OpenMP compilers, these lines
1228- will be considered as regular Fortran code
1229- For example ::
1228+ will be considered as regular Fortran code. The following code ::
12301229
12311230 program test_openmpi
12321231 !$ use omp_lib
@@ -1241,6 +1240,7 @@ For example ::
12411240 print*, "nthreads=", nthreads
12421241 end program
12431242
1243+ will print the number of threads used when compiled with OpenMP. It will print by default -1 if compiled without OpenMP.
12441244
12451245MPI
12461246~~~
You can’t perform that action at this time.
0 commit comments