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,18 +1223,18 @@ 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
12281228will be considered as regular Fortran code. The following code ::
12291229
12301230 program test_openmpi
1231- !$ use omp_lib
1231+ !\ $ use omp_lib
12321232 implicit none
12331233
12341234 integer :: nthreads
12351235
12361236 nthreads = -1
1237- !$ nthreads = omp_get_num_threads()
1237+ !\ $ nthreads = omp_get_num_threads()
12381238
12391239 ! will print the number of running threads when compiled with OpenMP, else will print -1
12401240 print*, "nthreads=", nthreads
You can’t perform that action at this time.
0 commit comments