code: def from_fortran_src(cls, fortran_src: str, dir: str = "."):
          
          import tempfile
          fp = tempfile.NamedTemporaryFile('w+t', delete=False, dir=dir)
          fp.writelines(fortran_src)
          fp.close()
          G = cls.from_fortran_file(fp.name, dir)
          os.remove(fp.name)
          return G
docs: Create a GroundedFunctionNetwork instance from a string with raw
          Fortran code.
  
          Args:
              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