delphi.GrFN.networks.GroundedFunctionNetwork.from_fortran_src

classmethod GroundedFunctionNetwork.from_fortran_src(fortran_src: str, dir: str = '.')[source]

Create a GroundedFunctionNetwork instance from a string with raw Fortran code.

Parameters:
  • fortran_src – A string with Fortran source code.

  • dir – (Optional) - the directory in which the temporary Fortran file will be created (make sure you have write permission!) Defaults to the current directory.

Returns:

A GroundedFunctionNetwork instance