k****a 发帖数: 4162 | 1 多谢
不过不太明白你说fortran module的结构本身不太重要的含义是什么? |
|
c*******h 发帖数: 1096 | 2 这是别人的code的三句话,我完全不懂fortran... |
|
c*m 发帖数: 1114 | 3 Intel Fortran 和gfortran Result 都是:
4.999999999999999E+017 |
|
k****e 发帖数: 2456 | 4 我是用intel fortran, 程序里定义实数都是一下这种形式
integer :: i
i小于10^9的时候程序运行正常,我把i 增加到10^10以上后程序自动停止,没给任何出
错信息。我实
在Linux下运行。
我觉得是i超出可用整数范围了,有没有什么办法增加整数可用范围?
我用
integer(kind = 8) :: i
之后同样的问题,而且不管i多大程序都自动停止
非常感谢 |
|
d******u 发帖数: 1142 | 5 我现在需要用IMSL Fortran Numerical Library 里的LFCDS, RNSET, RNNOR,但是这个
library是个商业软件,学校的机器上没有。请问有什么解决办法吗?有没有什么免费
的库可以提供相似的功能?
多谢了。 |
|
R********s 发帖数: 182 | 6 我有fortran 的code YYY.f90 如下:
PROGRAM MAIN
!
implicit none
INTEGER lambda(2),lim
integer df(2),ifault
REAL q,nc(2),sigma,acc,trace(7),res
nc = (/0,0/)
lambda=(/0.5,0.5/)
df = (/1,1/)
q = 10
lim = 10000
sigma = 0
acc = 0.0001
res = 0
call compute(lambda,nc,df,2,sigma,q,lim,acc,trace,ifault,res)
END program MAIN
XXX.cpp的code 如下:
#define UseDouble 0 /* all floating point double */
#include
#include 阅读全帖 |
|
f*****r 发帖数: 138 | 7 在一个Fortran程序中看到以下语句:
call matmul9(e(-n), d(1-n),c(2-n), b(0),a,b,c,d,e,n,m,x,r)
这里边a,b,c,d,e都是数组,n是一个正整数。我看不懂的地方是e(-n), d(1-n),c(2-n)
, b(0)这些表示什么。这些位置应该引用数组。那么比如e(-n)表示的数组和e有什么区
别?谢谢达人指点。 |
|
m*****g 发帖数: 278 | 8 刚刚接触fortran,不知道哪个debug软件比较好用呢,比如想设置断点,实时观察变量
赋值,或者可以一步一步运行程序。linux或者windows都可以。
谢谢大家! |
|
S****8 发帖数: 401 | 9 遇到的问题是,手头有一堆matlab legacy code,其中一部分generate一个database,
另外一部分基于这个database做一些运算。 因为这部分运算很慢,所以想转移到c或者
fortran下面去,请教大牛这种情况最佳选择应该怎么弄?(因为某些原因,不可能全
部重写这些legacy code)谢啦! |
|
A****0 发帖数: 1367 | 10 单机快 10 倍
并行的话可以快1000 倍以上
Matlab 本身的 performance 很差的, 胜在简单易用
想快 fortran 不二选择 |
|
A****0 发帖数: 1367 | 11 单机快 10 倍
并行的话可以快1000 倍以上
Matlab 本身的 performance 很差的, 胜在简单易用
想快 fortran 不二选择 |
|
b*****e 发帖数: 405 | 12 不考虑并行的话,如果你matlab code写的好(vectorize 很多),是不会比fortran慢
很多的 |
|
|
h***i 发帖数: 3844 | 14 现在需要用Fortran做结果,用R来plot, R run 循环太慢了 |
|
z*b 发帖数: 12 | 15 Matlab essentially uses BLAS (Fortran routines). |
|
k***n 发帖数: 997 | 16 一个project,在fortran头文件param.h里,收集了几乎所有的参数
但是把这句
parameter(pi = dacos(-1.0d0))
放进这个头文件后,make 命令就报错
:param.h: In subroutine `setup':
param.h:135:
parameter(pi = dacos(-1.0d0))
^
Invalid declaration of or reference to symbol `dacos' at (^) [initially seen
at (^)]
Makefile中每个subroutine都产生关于dacos的报错
看起来是dacos不能用在.h文件中
请教行家,这个dacos函数怎么用在头文件中?
谢谢 |
|
l***n 发帖数: 731 | 17 where to find a fortran code for degenrate hypergeometric function with
complex parameters and complex argument ? |
|
f**********g 发帖数: 117 | 18 【 以下文字转载自 Computation 讨论区 】
发信人: foreveryoung (Bouncer), 信区: Computation
标 题: 请推荐一款好的电脑吧, 主要用于计算,Fortran/MatLab,
发信站: BBS 未名空间站 (Mon Apr 9 22:59:34 2007)
也用Fluent, Pro/E,
原则是不想浪费钱,也不在乎钱, 老板会掏。
因为主要是计算, 要求速度和存储。
谢谢了。 |
|
C*******e 发帖数: 25 | 19 主要是写一些学校里的做research的code. 因为看到有一些opensource的research
code象
openfoam 之类的,如果要搞明白,我觉得还是要花时间好好学学oop。正在犹豫中,不
知道是学学
c++, 还是就用我熟悉的fortran或C写些code得了. 望高手科普顺带解惑。谢了。 |
|
h**e 发帖数: 2 | 20 I am runing a windows 7 machine. Can anyone recommend a free fortran
compiler? Will appreciate your help a lot. |
|
w**********g 发帖数: 65 | 21 intel visual fortran,网上能下到 |
|
l****u 发帖数: 3449 | 22 【 以下文字转载自 Computation 讨论区 】
发信人: lotayu (罗大佑), 信区: Computation
标 题: fortran output 弱问题求助
发信站: BBS 未名空间站 (Mon Apr 6 17:52:50 2015, 美东)
一串数字output,每个数字宽度不一样,但要求都间隔一个空格
比如 12,2.3,4000,500.000,要output成
——————————————————————
12 2.3 4000 500.000
——————————————————————
应该怎么控制?默认输出的话每两个数字中间是个tab
包子感谢! |
|
r*******n 发帖数: 3020 | 23 问一下,fortran调用c写的模块方便吗
比如windows平台下 做成DLL
linux下做成.so共享库
跟C |
|
d*b 发帖数: 21830 | 24 现在物理领域哪里还看得到fortran?这玩意早断种了 |
|
d*b 发帖数: 21830 | 25 gmake可以fortran/c++何起来编译的,你搞dll不招人骂么? |
|
t******n 发帖数: 6242 | 26 最近一段时间我在挣扎着编译前人留下的FORTRAN code,非常痛苦 |
|
|
a****a 发帖数: 5763 | 28 .....
你能不能别乱放炮?
现在c++对fortran上没有任何优势好不好?
以为玩个root你就真懂编程了? |
|
L******f 发帖数: 5368 | 29 现实一点。从找工作考虑,在简历上有C++
比FORTRAN要好很多,如果将来你想到花街
挣钱的话。 |
|
r*******n 发帖数: 3020 | 30 问一下,fortran调用c写的模块方便吗
比如windows平台下 做成DLL
linux下做成.so共享库
跟C |
|
d*b 发帖数: 21830 | 31 现在物理领域哪里还看得到fortran?这玩意早断种了 |
|
d*b 发帖数: 21830 | 32 gmake可以fortran/c++何起来编译的,你搞dll不招人骂么? |
|
t******n 发帖数: 6242 | 33 最近一段时间我在挣扎着编译前人留下的FORTRAN code,非常痛苦 |
|
|
a****a 发帖数: 5763 | 35 .....
你能不能别乱放炮?
现在c++对fortran上没有任何优势好不好?
以为玩个root你就真懂编程了? |
|
L******f 发帖数: 5368 | 36 现实一点。从找工作考虑,在简历上有C++
比FORTRAN要好很多,如果将来你想到花街
挣钱的话。 |
|
T**E 发帖数: 1892 | 37 实验用matlab,
理论用mathematica。
Fortran太复杂了。 |
|
c********s 发帖数: 123 | 38 Fortran program is beautiful!!!
program convolve
implicit none
c-----convolve lbl transmittance data with RSS filter function
integer ik, ip, nk, np, k, p, mm, nnp, nnk
parameter(np = 512, nk = 1024, nnp=4096, nnk=8192, mm=8)
real respQM(nk), respEQ(np, nk), respW(np)
real nrespQM(nnk), nrespEQ(nnp, nnk), nrespW(nnp)
real Imdir(nnk), Imdif(nnk), Irdir(nnp), Irdif(nnp), wn(nnk)
real tmp
character*20 label
print *, 'Reading RSS instrument |
|
c********s 发帖数: 123 | 39 hehe, just show on and show off.
Fortran is simple, clear, clean, crispy. |
|
f*******d 发帖数: 339 | 40 you call this beautiful?
No offense to you, but to FORTRAN, I mean. |
|
c********s 发帖数: 123 | 41 oh, yeah. clean, simple. It is a good tool, it can do good job.
do you even use fortran? |
|
t**t 发帖数: 9 | 42 There is a big difference between fortran 77 and 90.
The standard 77 version is too out-dated and not-easy-to-use,
90 is good, esp. considering the support of matrix operation
(not very powerful yet, but with not too much coding, you can
develop your library, like those in matlab.) and parallel computation.
If time permitted, I prefer writing 90 codes myself over copying
those 77 packages public avaliable: They are ugly. (Programming is
sometimes for fun, 77 is surely not.)
在 landauer (baby) 的大作 |
|
d*******n 发帖数: 20 | 43 请教Matlab大牛一个问题:
Window Vista 下的Matlab需要什么compiler来运行fortran? G95可用吗?
如果不行还有什么compiler可以用吗(能有免费的最好)?
谢谢! |
|
a*******i 发帖数: 67 | 44 I know C++, but still want to know more about Fortran |
|
a*******i 发帖数: 67 | 45 求推荐的比较好的fortran论坛(中英文版都行),谢谢! |
|
m****r 发帖数: 111 | 46 以前从来没有接触过,可是现在需要用到,只能自己琢磨。已安装visual studio08,
intel visual fortran11。
打开VS08后,点new project---intel visual fortran---console application---
empty project,创建了新project然后应该怎么操作呢?
我是在solution explorer里右键点这个project的resources files---add new item--
-选择*.f90文件。往里面写了一段code做试验,可以compile,但是在哪里看运算的结
果呢?
stupid question,轻拍 |
|
c*****m 发帖数: 4817 | 47 i hate using fortran on windows, too much trash files and proceses. |
|
m****r 发帖数: 111 | 48 确实没有,在source file上右键点compile以后,只在output窗口出现
Compiling with Intel(R) Visual Fortran 11.1.038 [IA-32]...
Source1.F90
D:\。。。。\Source1.F90(9): error #6785: This name does not match the unit
name. [MULT1]
compilation aborted for D:\stat\TS\software\literature\Console2\Console2\
Source1.F90 (code 1)
Build log written to "file://D:\...\Console2\Debug\BuildLog.htm"
Console2 - 2 error(s), 0 warning(s) |
|
S******y 发帖数: 1123 | 49 Why Fortran?
Why not using R or Matlab? |
|
a***g 发帖数: 2761 | 50 这年头还用fortran的是不是都是数据量超级多的? |
|