f90wrap icon indicating copy to clipboard operation
f90wrap copied to clipboard

Add support for Fortran 2003 "extends" keyword

Open jameskermode opened this issue 9 years ago • 1 comments

Reported by Bob Fischer. OO-style Fortran extension derived types don't work. In this case, I have a Fortran derived type:

type :: DebugType
    .....
end type DebugType

Then I extend it:

type, extends(DebugType) :: Debug_heat_eq
   ....
end type Debug_heat_eq

In the .py file that gets generated, the corresponding Python class Debug_Heat_Eq needs to extend the Python class Debugtype. Instead, it just extends f90wrap.runtime.FortranDerviedType, which messes things up

jameskermode avatar Jul 06 '15 12:07 jameskermode

Partially supported by commit 0deeac9242edc7c

jameskermode avatar Oct 27 '15 18:10 jameskermode