[petsc-dev] make all PETSc Fortran examples modern freeform?

Jed Brown jedbrown at mcs.anl.gov
Thu Nov 7 08:42:17 CST 2013


Blaise A Bourdin <bourdin at lsu.edu> writes:

> I haven’t use fixed-form in a long time, but isn’t free-form a
> superset of fixed-form? Are there situation where a fixed form code
> cannot be compiled as free form source code?

$ cat foo.f
      program foo
c     a silly comment
      end program
$ gfortran foo.f
$ gfortran -ffree-form foo.f 
foo.f:2:

c     a silly comment
1
Error: Unclassifiable statement at (1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131107/77940a6b/attachment.sig>


More information about the petsc-dev mailing list