Skip to content

Commit 78c75b8

Browse files
committed
espace $
1 parent 6fe978b commit 78c75b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/best-practices.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,18 +1223,18 @@ OpenMP
12231223

12241224
`OpenMP <http://www.openmp.org/>`_ should be compatible with
12251225
non-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
12271227
lines as comments and ignore them. For OpenMP compilers, these lines
12281228
will 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

0 commit comments

Comments
 (0)