Module calling an external procedure with implicit interface

前端 未结 1 497
臣服心动
臣服心动 2020-12-06 15:43

The following code, combining module procedures and external procedures:

module module_dummy

  implicit none

contains

           


        
相关标签:
1条回答
  • 2020-12-06 15:58

    Dummy arguments that are assumed shape must have an explicit interface at their point of reference. F90 12.3.1.1 item 2c.

    Practically, assumed shape arrays are passed by passing a descriptor - a little structure that describes the bounds and the location of storage of the array. Ye-olde F77 explicit shape and assumed size arrays are passed simply by passing the address of the first element. Without the explicit interface the compiler doesn't know that it needs to build and pass the descriptor - hence chaos and confusion results.

    0 讨论(0)
提交回复
热议问题