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

Jed Brown jedbrown at mcs.anl.gov
Thu Nov 7 09:07:43 CST 2013


Satish Balay <balay at mcs.anl.gov> writes:

> On Thu, 7 Nov 2013, Blaise A Bourdin wrote:
>
>> I haven’t use fixed-form in a long time, but isn’t free-form a superset of fixed-form?
>
> In essence all current petsc code complies with this.
>
> [i.e its syntactically corect both free form and fixed form]

Current PETSc requires polyglot Fortran, written in a peculiar
intersection of the two dialects.

>> Are there situation where a fixed form code cannot be compiled as free form source code?
>
> Not sure if its the fixed/free form issue - [its perhaps f77 vs f90] - some
> external packages use 'C' for comment - which some f90 compilers barf on.

c      = 1

is a valid statement in free-form, but a comment in fixed-form.
-------------- 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/a7890ffb/attachment.sig>


More information about the petsc-dev mailing list