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

Blaise A Bourdin bourdin at lsu.edu
Thu Nov 7 09:41:46 CST 2013


Would it be possible to remove all instance of the "PARAMETER” keyword from the petsc source code? I would like to compile a FORTRAN IV boundary element program I wrote in 1963 for the structural analysis of 8 track cartridges.
Also, where do I get a punch-card version of petsc source code? I cannot compile git on my IBM 7030.

Blaise
On Nov 7, 2013, at 9:07 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> 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.

-- 
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin











More information about the petsc-dev mailing list