我有一个护身符错误:
Warning: Obsolete: arithmetic IF statement at (1)
这是什么意思?
66 s12 = max(epsilon, s1 + s2)
c Then execution will go to label 13. Will this stop any further problems?
if (s12 - 1.0) 13, 13, 12
13 z = s1 / s12
我有一个护身符错误:
Warning: Obsolete: arithmetic IF statement at (1)
这是什么意思?
66 s12 = max(epsilon, s1 + s2)
c Then execution will go to label 13. Will this stop any further problems?
if (s12 - 1.0) 13, 13, 12
13 z = s1 / s12
如果是FORTRAN的一个特殊特征,则具有神学性质
其作用如下。
IF (expr) label1, label2, label3
如果表达式的值是
less than 0, jump to label1
equal to 0, jump to label2
greater than 0, jump to label3
在新的FORTRAN标准中,这一特点已经过时
在您的代码代码中,您可以替换为
IF (s12 - 1.0 .gt. 0 ) GOTO 12
13 z = s1 / s12
检查此处 :
http://www.ibiblio.org/pub/langues/fortran/ch1-5.html
"自学的IF被认为有害。"
你的发言:
if (s12 - 1.0) 13, 13, 12
是一个自定义化的 IF, 被视为无效编程 。
http://en.wikipedia.org/wiki/Arithmedic_IF" rel="nofollow" >wikipedia :
"... 堡垒声明界定了三个不同的分支 取决于一个表达方式的结果是负的,零的,还是正的..."
终于在90号堡被贴上了 白种人的名字"
I have a compiled .exe file (compiled with gfortran and -g option) that crashes. I can attach the WinDBG program to it using the WinDBG -I command. Funny enough it generates a stack overflow: (38f0....
I ve got a large Fortran codebase that originally targeted Intel s compiler. I m now gearing up to compile with gfortran. Unfortunately, the code is littered with Intel-style pre-processing directives ...
I have some old fortran 77 I m trying to port to gcc on Windows. I m using gfortran 4.4. The statement uses READ(FOO, (F) , ERR=BAR) BAZ and gcc is complaining about F. From what I ve seen it ...
I have installed NetCDF "binary-netcdf-4.0.1_gfortran_gfortran_c++.tar ". But I am not sure about the gfortran compiler I have used. How can I find the compiler I have used?
I want to access some subroutines from a third party DLL. The functions use STDCALL as the calling convention. Running dumpbin /export foo.dll gives me something like: ... 7 6 ...
The following Fortran code is giving me a bus error on my Mac but no errors when I run it on my Linux machine: PROGRAM TINY WRITE(UNIT=*, FMT=*) Hello, world! END My understanding is that a ...
I m trying to compile some fortran files in Xcode, using a makefile made by me. The problem is that Xcode can t find gfortran compiler. I have it, because if I go to console and try to compile from ...
I d like to compile a fortran code with gfortran so that it will work on both Mac OS X 10.5 and 10.6. Is there a way to do this? I tried compiling on 10.6 and get this message when I run the ...