I have seen /* block comment */
for block commenting in C++. I know I can do line commenting by using !
or c
, but is there any option for block commenting in Fortran?
相关问题
- CABS(x) function for complex(8)
- Upper bound of random number generator
- Finding number of lines of a data file using comma
- When do Fortran module allocatable arrays go out o
- How are these double precision values accurate to
相关文章
- Does gfortran take advantage of DO CONCURRENT?
- Fortran 90 - “Segmentation fault - invalid memory
- Reading records from a Fortran binary file in Pyth
- expand a dense matrix
- Unable to use f2py to link large PETSc/SLEPc Fortr
- How to read comma delimited data file if some data
- getting Cygwin to know about microsoft cl and nmak
- How do I allocate input arrays with f2py?
No, the strange concept of block comments is alien to Fortran. Your editor or development environment might provide a way to comment a block of lines in one go.
You can do a little hack though:
Yeah, I know it's horrible but it works. :)
In Sublime text editor it can be used Toggle Comment (Ctrl+7) or Toggle Block Comment.
A line with a c, C, *, d, D, or! in column one is a comment line; except that if the -xld option is set, then the lines starting with D or d are compiled as debug lines. The d, D, and! are nonstandard.
If you put an exclamation mark (!) in any column of the statement field, except within character literals, then everything after the ! on that line is a comment.
If your FORTRAN compiler supports preprocessor macros then a popular method is to use (What exactly does an #if 0 ..... #endif block do?)