由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Help please: A question about NaN
相关主题
求 Lahey fortran compiler请教如何画一个封闭的曲面(该曲面投影不是矩形)
有没有free的Fortran Compiler阿?请问matlab里的二维插值(x,y)必须是网格化的点吗?
终于找到lahey的一个不足问一个matlab的画图问题(大包子酬谢)
偶也问一fortran问题Matlab 循环出错的问题
谁给说说fortran的几个标准请教Matlab中pinv出现NaN的问题
[合集] 请教c下面大数祖问题ft! Strange problem in Matlab!
有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?anyone know how to compile a libary coded in c which any be used by
matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍where to down a standard Fortran90 complier?
相关话题的讨论汇总
话题: nan话题: ifort话题: question话题: some话题: about
进入Computation版参与讨论
1 (共1页)
j**********t
发帖数: 12
1
Hi All,
Thanks for your attention.
My fortran code produced some NaN in the output file, which probably means
some invalid operations incurred, such as 0.0/0.0, I wonder if anybody can
tell me how to detect the source(or location) of the problem? I remember if
the code is compiled by Lahey, we can do it by adding some option when
compile(but forgot what kind of option). Unfortulately, I am using ifort now
. Any information will be highly appreciated.thanks
s**i
发帖数: 381
2
man ifort
and look for floating point exceptions (FPE)

if
now

【在 j**********t 的大作中提到】
: Hi All,
: Thanks for your attention.
: My fortran code produced some NaN in the output file, which probably means
: some invalid operations incurred, such as 0.0/0.0, I wonder if anybody can
: tell me how to detect the source(or location) of the problem? I remember if
: the code is compiled by Lahey, we can do it by adding some option when
: compile(but forgot what kind of option). Unfortulately, I am using ifort now
: . Any information will be highly appreciated.thanks

j**********t
发帖数: 12
3
Thanks a lot. The problem was solved by following your suggestion.

【在 s**i 的大作中提到】
: man ifort
: and look for floating point exceptions (FPE)
:
: if
: now

O******e
发帖数: 734
4
ifort also has an intrinsic function isnan() to test for NaN, returning a
logical result.

if
now

【在 j**********t 的大作中提到】
: Hi All,
: Thanks for your attention.
: My fortran code produced some NaN in the output file, which probably means
: some invalid operations incurred, such as 0.0/0.0, I wonder if anybody can
: tell me how to detect the source(or location) of the problem? I remember if
: the code is compiled by Lahey, we can do it by adding some option when
: compile(but forgot what kind of option). Unfortulately, I am using ifort now
: . Any information will be highly appreciated.thanks

1 (共1页)
进入Computation版参与讨论
相关主题
where to down a standard Fortran90 complier?谁给说说fortran的几个标准
my experience,Re: 我也及问一个问题[合集] 请教c下面大数祖问题
[转载] unix下编译fortran 的错误太多,看不到怎么办?有人用过Matlab的Compiler吗?或者是否有什么工具能把Matlab程序转成C, C++?
How to compile F77 file with C ?matlab改成C++,还用了号称史上最快的fftw,结果慢了一倍
求 Lahey fortran compiler请教如何画一个封闭的曲面(该曲面投影不是矩形)
有没有free的Fortran Compiler阿?请问matlab里的二维插值(x,y)必须是网格化的点吗?
终于找到lahey的一个不足问一个matlab的画图问题(大包子酬谢)
偶也问一fortran问题Matlab 循环出错的问题
相关话题的讨论汇总
话题: nan话题: ifort话题: question话题: some话题: about