由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Fortran问题
相关主题
相关话题的讨论汇总
话题: fortran话题: compiler话题: supports话题: ieee话题: exceptions
进入Computation版参与讨论
1 (共1页)
n********6
发帖数: 58
1
Fortran 里有没有类似 C 的 TRY-CATCH ?
v***v
发帖数: 3
2
never heard of that.

【在 n********6 的大作中提到】
: Fortran 里有没有类似 C 的 TRY-CATCH ?
sc
发帖数: 122
3
maybe in f90 if associated?

【在 n********6 的大作中提到】
: Fortran 里有没有类似 C 的 TRY-CATCH ?
O******e
发帖数: 734
4
No, that tests whether a pointer points to a valid memory address.
The "associated" statement may return an error status, but it does
not throw an exception.

【在 sc 的大作中提到】
: maybe in f90 if associated?
O******e
发帖数: 734
5
If you really need to handle general signals using native Fortran,
you will need a compiler that supports the PXFSIG* subroutines
defined in the POSIX Fortran binding standard IEEE 1003.9-1992.
It might be easier to use mixed Fortran/C++ compilation to do
what you want, if your compiler supports mixed language calling.
If you only want to deal with numerical exceptions, check whether
your compiler supports the Fortran 2003 ieee_exceptions intrinsic
module.

【在 n********6 的大作中提到】
: Fortran 里有没有类似 C 的 TRY-CATCH ?
1 (共1页)
进入Computation版参与讨论
相关主题
相关话题的讨论汇总
话题: fortran话题: compiler话题: supports话题: ieee话题: exceptions