f90 プログラムの 1 つのサブルーチンで何らかの条件が発生したときに、ブレーク オーダーを設定する方法を見つけようとしています。そこから何かアイデアが生まれる可能性はありますか?コードスキームは次のようになります。
/
modules
PROGRAM
allocate variables
CALL subroutines for initializing variables
...
do 1,max iterations
CALL subroutine1
CALL subroutine2
CALL subroutine3 !--> here I have the condition
...
...
end do
END PROGRAM
Subroutine subroutine3
...
if (condition = true) then ! what I want to do here is to break the program printing a message saying that it is stopped because condition is true)
end if
end subroutine 3
/
助けていただければ幸いです。
私は Fortran の初心者であり、このフォーラムでは初めてです。
前もって感謝します、
アルバート・P