私は、メイクファイルプロセッサに依存関係を見いだそうとしました。 (並列アプリケーション開発者のためのEclipseでテスト版:ジュノリリースIDビルド:20120614から1722)を
- Set Module and Include Paths(この数字が挙げられる)
If your source code contains INCLUDE lines or USE lines referencing modules in other files, Photran needs to know where to look in order to find these. It will not figure this out automatically. For each project in which you plan to use refactoring support,
- Right-click on your project's folder in the Fortran Projects view
- Click on Properties
- Expand Fortran General in the list on the left, and click on Analysis/Refactoring
- List the folders in which Photran should search for INCLUDE files and modules when refactoring. They will be searched in order from the first folder listed to the last.Subfolders are not searched automatically; you must include them explicitly.
- Click OK
。 2.Eclipse IDEで、プロジェクトフォルダを右クリックし、 - >リファクタ - >サブプログラム - >呼び出しツリーをクリックします。あなたのモジュールのすべての依存関係を表示するはずです。
あなたのモジュールの順序に注意する必要があります:それは(コードhereから変更)
program test
! Option #1: blanket "use constants"
! use constants
! Option #2: Specify EACH variable you wish to use.
use constants, only : PI,E,answer,earthRadiusInMeters
use constants2, only : PI2,E2,answer2,earthRadiusInMeters2
implicit none
write(6,*) "Hello world. Here are some constants:"
write(6,*) PI, E, answer, earthRadiusInMeters
write(6,*) PI2, E2, answer2, earthRadiusInMeters2
end program test
で実行されますが、あなたが変更した場合、モジュールと
module constants
implicit none
real, parameter :: PI=3.14
real, parameter :: E=2.71828183
integer, parameter :: answer=42
real, parameter :: earthRadiusInMeters=6.38e6
end module constants
module constants2
implicit none
real, parameter :: PI2=3.14
real, parameter :: E2=2.71828183
integer, parameter :: answer2=42
real, parameter :: earthRadiusInMeters2=6.38e6
end module constants2
use constants, only : PI,E,answer,earthRadiusInMeters
use constants2, only : PI2,E2,answer2,earthRadiusInMeters2
implicit none
この
use constants2, only : PI2,E2,answer2,earthRadiusInMeters2
use constants, only : PI,E,answer,earthRadiusInMeters
implicit none
ため
あなたは同じエラーを取得します。
大きなプログラムの場合は、manual makefile optionを使用しました。しかし、私はインテルのデバッガidbを使用しました。同じメイクファイルのPhotranのデバッガでブレークポイントを設定していないからです。
最高の運が。