Dynamic function creation from another function

前端 未结 2 1699

I have a Fortran 90 subroutine which takes a function as an argument, and I would like to pass a modified version of that function into another subroutine. I want the progra

2条回答
  •  自闭症患者
    2020-12-20 19:24

    You could do a lot with procedure pointers, constructing a function that is a combination of other functions. See Function pointer arrays in Fortran for a code example.

提交回复
热议问题