Modifying f2py to work with Continuity

A very small change must be made with the current version of f2py to work with Continuity source code. Here are the steps:

  1. Open the crackfortran.py file. For me it was here: lib/python2.5/site-packages/numpy/f2py/crackfortran.py
  2. Search for this:
       1 elif strictf77:
       2   if len(l)>72: l=l[:72]
    
    Change it do this:
       1 elif strictf77:
       2   if len(l)>72: pass#l=l[:72]
    
  3. Save the changed file

Explanation:

  • Our files won't compile unless they are identified as "strict fortran77" which apparently requires having no more than 72 characters per line. We don't always follow this restriction; the only problem this causes is we must make this small change to f2py.