由买买提看人间百态

topics

全部话题 - 话题: f77
1 2 下页 末页 (共2页)
n*********s
发帖数: 8
1
来自主题: Computation版 - How to compile F77 file with C ?
my C program need a routine in F77, just a small calculation. The routine is a
random number generator using function IEOR in F77.
h***o
发帖数: 539
2
来自主题: Computation版 - How to compile F77 file with C ?
c里面调用Fortran function的时候function name后面加个"_"就可以了
传的参数全部用指针
f77 -c function.f
gcc main.c function.o
n*********s
发帖数: 8
3
来自主题: Computation版 - How to compile F77 file with C ?
Got it. Thanks.
BTW, can you tell me a little more about this kind of things, or refer me to
some books or websites?
Such as how to call c routine in f77..., how should I be careful about the
data type in c and f?...

is a
p********y
发帖数: 111
4
来自主题: Programming版 - help!无法编译一个package
在ubuntu下想安装一个package,make后错误信息如下:
f77 -fast -c -o contour2.o contour2.f
MAIN contour2:
sum:
ssort:
cc1: error: unrecognized command line option "-fast"
/usr/bin/f77: aborting compilation
make[1]: *** [contour2.o] Error 25
make[1]: Leaving directory `/home/wyf/Desktop/Package/Source'
make: *** [everything] Error 2
是我的f77版本不行?如何找到正确的版本?谢谢
M***y
发帖数: 1594
5
Xuemei (Maisy) Huang
32560 Stony Brook Lane, Solon, OH 44139
Email:m*********[email protected], Phone: 440-498-2222(h), 216-978-5913(c)
Skills
 Comprehensive experiences on scientific computation/simulation
and algorithm development
 Hand-on experiences on multiple programming Languages including
Matlab, C/C++/C#, Perl, F77/F90, shell scripts, Java, SAS, Labview, Python
and SQL
 System administration skills on Microsoft Windows, Linux
operation systems and computer ha... 阅读全帖
c**********l
发帖数: 51
6
请大家推荐适合自拍的,双屏或者屏幕可以转或者镜头可以拧的卡片机
我以前在网上看一个自拍很好的mm用sony f77, 这种相机方便自拍, 因为镜头可以转
过来.
我现在正好想买个新的卡片机。
想这样的:
1,别太贵. $200以下
2,卡片机。
3,能拧镜头(如sony f77, 但是这个是很多年前的了),
或者转屏幕(如olympus c7070, 但是这个一是很多年前的了, 二体积有点大),
或者双屏的(如samsung tl205, 但是我不太喜欢samsung的)
4, 现在市场上能买到的, 08年, 09年或者10年出的. 这样购买渠道方便(不想在ebay上
买---没ebay帐号, 想在amazon等上买), 相机的技术指标也好点.
感谢懂相机达人的回答. 请推荐适合自拍的机型。 感谢!
现在倾向于买samsung TL205, 因为最近2年内出的双屏或者屏幕可以转或者镜头可以拧
的卡片机, 好象也只有它了.
m**********g
发帖数: 115
7
来自主题: Programming版 - 另一个Fortran 问题
对fortran不熟,只是有时候需要读一读。有这样一段代码,很不理解,望能人予以解答
c Area.f --- To calculate area, radius is given
#ifndef CONSTANT_PI
# define CONSTANT_PI 3.14159
#endif
real*4 area
real*4 r
r = 1
area = CONSTANT_PI*r*r
write(6, *) area
end
我看到别人能运行,用的是cygwin下的f77编译的。觉得很奇怪,我觉得ifndef和
define都是c下面的东西啊,怎么能在fortran里面用呢。我自己试的时候,编译器说第
一行就有问题。然后我就把第一行和第三行都去掉,编译通过。但是运行后,area的数
值不是3.14159而是一个乱七八糟的东西。
请问,是不是我的f77配置有问题,是不是通过某种配置之后,就能够认知ifndef。还
有define是fortran 77里的关键字吗?谢谢
s*****l
发帖数: 2041
8
来自主题: Unix版 - [转载] 分特,一个弱问题
【 以下文字转载自 Linux 讨论区 】
【 原文由 sonhill 所发表 】
OS: RH9.0
怎样加上cc, f77等的man?
我在terminal输入: man cc
出现:
No manual entry for cc
但是man ls, man mkdir等都没有问题,
用set看了一下,没有设MANPATH,
但是我即使设:
MANPATH=$MANPATH:/usr/local/share/man:/usr/share/man
export MANPATH
还是不管用。那位告诉一下cc, f77的man page都藏在哪里?是不是还得自己装?
多谢了。
g***i
发帖数: 90
9

this might help a little bit:
Calling C from Fortran
The Unix portable Fortran-77 compiler ('f77') is written almost entirely in C.
The second pass of the compiler is the same one used by the C compiler, and
most 'f77' library routines are simply interfaces to corresponding C library
routines. However, since Fortran does not support data structures like those
used in C, you may not be able to take advantage of all the functionality that
the 'curses' library offers. Manipulating windows with '
w*******g
发帖数: 99
10
来自主题: Computation版 - <>全书下载
This article gives only comparison between C++ and F77. From the comparison I
don't see that overall advantages that make C++ better than Fortran 77. The
author just said "C++ has cautht up with Fortran and is giving it stiff
competition". Still "no solid evidence" shows C++ is superior than its
counterpart. As I mentioned before, the comparison is just made for F77. With
the new development of F90/95 (soon F2000), Fortran has more powerful Array
manipulation capability and I think it will be a
t******q
发帖数: 117
11
what is Fortran compiler for windows?
why do you use linux g77/f77 fortran compiler?
or you may try cygwin g77/f77 fortran compiler under windows
all are free, works great.
a******s
发帖数: 232
12
来自主题: Computation版 - 老板的程序在unix上运行没问题
$ ll /usr/bin/f77
lrwxrwxrwx 1 root root 3 Oct 20 09:55 /usr/bin/f77 -> g77
a**i
发帖数: 419
13
来自主题: Computation版 - 请教大家c++ array

c++的数组变量等效为指针变量。这样所有的数组操作都可以用指针操作代替。
在多数情况下,指针操作的执行效率比数组操作要高。但是使用指针很容易
出错,程序debug的时候也难找毛病。
如果不计较程序的执行效率,那是无所谓的。尤其是fortran有大量现成的科学
计算程序包,可以节省编程时间。但f77没有指针、不支持递归,在其他应用场
合用起来非常不爽;f95如何我不熟悉,但听说已经把f77改得面目全非了。
t*****o
发帖数: 74
14
来自主题: Computation版 - 关于adaptive grid size的问题
又是boltzman equation
天天听到这个名词boltzman, 纳米, MEMS, Fuel Cell 。。。
F77搞adaptive grid比较困难把
要不混着, C负责网格, f77负责算? HOHO
S***y
发帖数: 186
15
来自主题: Computation版 - 关于C和Fortran: 一点儿个人观点

持保留意见。应该说用Fortran和C的人都在增多,不过用C的增加更快。
但还是那句话,这没可比性,因为C应用领域广的多。
应该是已经淘汰了吧,没人再用F77写专业程序了,我想。
F90是比F77复杂多了,但其实把Module和Allocatable Array整明白,
再把那些增加的Intrinsic Functions记住,就差不多了。
Intel有免费的F90/95的编译器啊,性能不错。
你要是买更牛的机器,这compiler的成本应该是占很小的比例吧。
关于Portability, 我用过的commercial packages, 用Fortran写的都可以
在我所有的机器上编过,IBM, SGI, Alpha, Itanium, Pentium ...
C的我没用过。但我想实际上很少有C的程序是在ANSI Standard下写的,
都或多或少的使用了compiler-dependent extensions,所以这portability
反而会有问题。纯属个人愚见。:)
免费的Fortran写的library就更多到我都不想说了,当然都是做计算的。:(
当你面向整个世界时,
w**t
发帖数: 1068
16
unix里,我用
f77 -r8 或 pgf90 -r8 都可以达到双精度,i.e. 16位有效数字的精度
我想问,怎样达到32位有效数字的精度?
我知道好像有类似于 f77 -r16 ,90有类似的吗?
或者code的编写里面怎样设置?好像没有 real(16) 这样的?
谢谢帮助!
e*l
发帖数: 37
17
来自主题: Computation版 - c++ versus fortran
fortran本来就是专门搞数值计算,用它做非数值的东西不是瞎搞么?
C++并不是什么都能做,底层的硬件操控还得靠汇编。
f77就是垃圾,f90标准出来得太晚,而且太保守,但是比f77好的多。
面向对象的语言多了去了,把C++说成是最好语言就是扯淡!
C++语法复杂,编程中需要关注的细节很多,编程效率并不高,相比Fortran隐藏
了很多细节,要简单得多,你的10人年的例子就是胡扯!
C++促进优良的编程习惯?地球人都笑了!难道用fortran就没有良好的编程习惯
了?
第5点是你自己凭空造的吧,你学过计算机操作系统没有?
速度的提法也是扯淡,C++编写代码以及调试比fortran要复杂得多。
你贴的博士论文上的代码有点糟糕,你只是把C++当成C在用而已,同样的东西用
frotran也可以做得更漂亮.

10
e*l
发帖数: 37
18
来自主题: Computation版 - c++ versus fortran
fortran本来就是专门搞数值计算,用它做非数值的东西不是瞎搞么?
C++并不是什么都能做,底层的硬件操控还得靠汇编。
f77就是垃圾,f90标准出来得太晚,而且太保守,但是比f77好的多。
面向对象的语言多了去了,把C++说成是最好语言就是扯淡!
C++语法复杂,编程中需要关注的细节很多,编程效率并不高,相比Fortran隐藏
了很多细节,要简单得多,你的10人年的例子就是胡扯!
C++促进优良的编程习惯?地球人都笑了!难道用fortran就没有良好的编程习惯
了?
第5点是你自己凭空造的吧,你学过计算机操作系统没有?
速度的提法也是扯淡,C++编写代码以及调试比fortran要复杂得多。
你贴的博士论文上的代码有点糟糕,你只是把C++当成C在用而已,同样的东西用
frotran也可以做得更漂亮.

10
i******s
发帖数: 359
19
2001年9月11日是美国政府及人民心中永远的痛。就在这一天,当今这个世界上唯一的超级大国遭遇了迄今为止人类历史上最为严重的恐怖袭击。纽约世界贸易中心、美国国防部所在地——五角大楼先后遭到恐怖主义分子劫持的波音757、767飞机猛烈撞击,导致世贸双塔轰然倒塌,共造成3000多人死亡和失踪。“9·11事件”被美国政府称为是其历史上第二次“珍珠港事件”。
事件发生后,美国总统布什马上发表声明称,这是一起明显的针对美国的恐怖袭击事件,发誓要追查到底,严惩元凶,要开展一场打击恐怖主义的全球战争。世界各国领导人也很快发表讲话,严厉谴责这一恐怖袭击事件,并对美国人民表示同情。
美国认定流亡的沙特大亨本·拉登以及受其领导的“基地组织”策划并组织了“9·11事件”,拉登则是头号嫌疑犯,并要求庇护他的阿富汗塔利班政权立刻将其交出,但遭拒绝,于是美国在10月7日发动了对阿富汗的战争。
美国遭受恐怖袭击纪实:
美国东部时间9月11日上午9点前后(北京时间11日晚9点前后),两架飞机先后撞击纽约世界贸易中心摩天大楼,两次撞击之间仅相隔约18分钟。
首次撞击的时间是8:45(北京时间20:45),撞毁的飞机是美... 阅读全帖
r**********g
发帖数: 22734
20
来自主题: Military版 - 用过打孔的出来报道了
F77我拿手啊。
xt
发帖数: 17532
21
来自主题: Military版 - 激光陀螺的秘密程序编码泄露了
不对。现在也在慢慢改,而且现在的Fortran跟以前的F4,F77
区别很大。首先是现在支持动态数据了
xt
发帖数: 17532
22
来自主题: Military版 - 激光陀螺的秘密程序编码泄露了
说是这么说,但是老BASIC连动态数据结构都没有吧。BASIC最早
就是FORTRAN简化出来的,当然比F年轻,所以没有F4/F77那么蠢。
r**********g
发帖数: 22734
23
不做码工学什么java?老实用matlab就是了。科学计算哪有用java的,ampl, ipopt哪个
用的不是c++?去netlib下个算法,不是.f77就是.c
xt
发帖数: 17532
24
来自主题: Military版 - 方肘子的问题是科学素养也有限
写C程序那么难吗?我也是跟计算机/电子完全不相关的专业自学的
ASM, C.大学学的是F77 (F as in "Fuck!").
g******t
发帖数: 18158
25
来自主题: Military版 - 方肘子的问题是科学素养也有限
那年头是个理科大学都学点计算机语言课,先是BASIC,后来是F77,C语言
非计算机专业的C语言的课本是清华唐浩强编的,大烂书
s**********d
发帖数: 36899
26
来自主题: Military版 - 方肘子的问题是科学素养也有限
C 不懂,但我们生物系都学过f77,大学时也用pascal学过一些游戏。
96年自己用c写网站就太牛逼了,现在都得是业界大牛了吧。
w*******e
发帖数: 15912
27
来自主题: Military版 - 方肘子的问题是科学素养也有限
老衲都学过,高中Basic,大学F77,研究生C,就是谭浩强的。
xt
发帖数: 17532
28
动手最重要,现在电脑那么便宜,而且IDE也这么先进而且免费,
弄个Eclipse下来,然后随便弄本书练练手,手上有了感觉再
往下学。我当年C, C++, Java都是自己看书学的,在那以前只
用过BASIC和FORTRAN77,F77是相当土的语言
t******k
发帖数: 5617
29
来自主题: Automobile版 - 求教:FORESTER 内饰中控改变!!
http://www.subaruforester.org/vbulletin/f77/my-clean-removable-
搞个nexus 7,这个在14款上应该也能实现

~!
r*****j
发帖数: 7481
30
来自主题: Automobile版 - 2014+ Forester 2.5 可以改装换挡拨片
不得不说开subaru的动手能力都好强,买的了菜也改的了车。
http://www.subaruforester.org/vbulletin/f89/us-forester-2-5-pad
XT版本的自己换STI方向盘,更骚气了。
http://www.subaruforester.org/vbulletin/f77/tutorial-2015-sti-w
D***0
发帖数: 5214
D***0
发帖数: 5214
p******t
发帖数: 228
33
搭车请教各位,博后刚开始一个月,9月初就要结束。。。需要马上找工作。以前硕士
时写过一个3k行的F77程序,博士期间写过2w行C++程序,能运用OOP思想。硕博都是计
算物理专业。但是我写的程序都是基于物理人的思维方式,算法都是纯物理算法,缺少
了一些数据结构之类的计算机科学思维。不知道应该找哪类马浓的工作。。。应该怎么
找。。。谢谢了。
去年中以为以后不用编程了,把C++的书都卖了,现在又要重新买回来Orz,一年多没写
程序了,又要复习了。。。
觉得自己目前前景不明朗,可能很快就要滚回国了。
d******0
发帖数: 22800
34
今天跑long run,F77-F58的气温 南加天气太阳在77度,太阳下山就到58度,我穿着长
袖跑步,跑到尾声竟然觉得很冷,最后几迈心率直线下降,都掉到120了,勉强撑着跑
在10-11分上,感觉冻得鼻涕都出来了,60度的气温,冻得流鼻涕是啥世道。路上喝了
好几次饮水机的水。
跑完回到家,人开始发冷打颤,像空了一样,感觉是不是体内的血糖糖原都耗光了,看
到啥东西都恨不得吃掉,从冰箱里拿出摩斯蛋糕捧着就啃上了。啃了几口,才想起来血
糖震荡的事,感觉放下,又去拿冰淇淋吃,嗨,人都不受大脑控制了,只想吃甜的,越
甜越好,要是有热气腾腾的猪油拌饭,我一定情不自禁地吃掉了。赶紧补了电解质,1L
椰子水下肚,2块蛋糕,一小碗冰淇淋,一杯柠檬水+chia seeds。还是很冷,感觉人像
纸一样,怕不小心就到地上了。半饿着去洗澡,洗完,15分钟后,感觉吃的东西被消化
成血糖了,身体才算回过劲来。
对了,今天早上去抽血,被抽了30×4=120毫升的血。上次看到这版上人说失血后,容
易撞墙,我本着自虐的心态,赶紧的下午晚上就去跑long run了,撞墙听说过,没经历
过,一直很遗憾,不知道我这个是不是... 阅读全帖
t****g
发帖数: 35582
35
来自主题: PhotoGear版 - 万能的,求XP里的C和Fortran compiler
怎么可能。
你下的哪个?
http://openwatcom.mirrors.pair.com/
C/C++编译器是
http://openwatcom.mirrors.pair.com/open-watcom-c-win32-1.8.exe
fortran是
http://openwatcom.mirrors.pair.com/open-watcom-f77-win32-1.8.exe
C/C++编译器你也可以去下载visual studio 2010。express版面费下,professional版
凭学生帐号在dreamspark可以免费下。不过如果你就是个命令行的小程序化,vs绝对
overkill了。
s*****d
发帖数: 1749
36
来自主题: PhotoGear版 - 大家给推荐个扫街器材吧
看了很久以前用SONY F77随便扫街的照片,很多让我现在自愧不如。
手边有D800用作拍摄严肃题材,想寻找一个扫街的利器,手机不作为考虑,理想的条件有
小巧轻便(相对)
直出画质好,不需要麻烦后期
耐用,随时掏出来就能用
视角适合扫街
谢啦
m**********e
发帖数: 12525
37
华尔街需要的是建模,需要招来的人了解鞅论,要达到这个层次数学功底起码
修炼到数学系研究生水平,这你们码农就不行了.
至于编程,这只是工具而已,看你给悲愤的.sandia核爆模拟还用f77呢,
是不是更让你难受了?
O******e
发帖数: 734
38
The :: is just the new syntax for declarations in Fortran 90/95/2003.
In F77 you would write
INTEGER X
DIMENSION X(1:N)
or more compactly
INTGETER X(1:N)
and in F90+ you would write
integer,dimension(1:n)::x
The :: separates the type and properties from the list of variables.
It does not have the same meaning as :: in C++.
You can probably even omit the :: (at least in some cases you can).
I have gotten into the habit of always writing the :: where possible.
O******e
发帖数: 734
39
来自主题: Programming版 - fortran 77 introduction book recommendation?
If you are already proficient in another programming language, you should
be able to read most of the code already, and whatever keywords you don't
understand, you can find easily through Google.
If you still want a reference book, try "Fortran 90/95 Explained" or
"Fortran 95/2003 Explained" by Michael Metcalf et al. Fortran 77 is
a subset of Fortran 9x/2003 and is covered by these books (in the
appendices). Metcalf's older book specifically about F77 is "Effective
FORTRAN 77".
Or try Numerica
p********y
发帖数: 111
40
来自主题: Programming版 - help!无法编译一个package
someone told me:
"
There are compilation errors which seem to indicate that your compiler
accepts 6-character variable names (F77 standard) while the source code
expects some other compilers that accept an extension (sometimes up to 32
characters).
It's time to check the source code package for the compatible operating
systems and compilers, and see if your system or compiler is one of them. If
not, expect to do some hands-on programming/modifications.
"
but how can i do? how to check the compat
E*V
发帖数: 17544
41
来自主题: Programming版 - 太丢人了
fortran array starts at 0 since f77 by default?
t*****n
发帖数: 4908
42
来自主题: Programming版 - 求推荐:fortran好用的debug软件
compaq fortran和intel fortran都是商业软件,很贵。
f77和gdb都是免费的。
w*x
发帖数: 518
43
来自主题: Programming版 - 发现版上没有聊fortran的
你说的那个是f77 fixed form, f90 里面free form就改过来不需要啦:)

[发表自未名空间手机版 - m.mitbbs.com]
f***d
发帖数: 101
44
来自主题: Software版 - Re: ask fortran expert a problem
it is memory violation problem, to check where it happens,
compile it by
f77 -g sourcefile.f
then run it under dbx by
dbx exectalbeFile
run
It will show your the invalid memory reference point, then
try to print some variable values to determine the cause.
good luck,
m*****e
发帖数: 126
45
来自主题: Unix版 - hOW CAN i COMPILE AND RUN FORTRAN?

First, you should tell us what is your operating system.
Since you post in this board, I suppose you are working on UNIX.
Usually, there are fortran compilers on Unix system. Try f77 or g77.
As a remark, this compiler is not very good. If you write small
programs, it should be OK. But if you are going to work on big
project, considering some commercial compiler. I am now us ABSOFT's
compiler. It is very nice.
s******n
发帖数: 15
46
that makes sense, what i want is ouputing the f77 compiler
license information to a file. everytime i compile a file,
it always output lots of dummy. thanks.
f***d
发帖数: 101
47
来自主题: Unix版 - What's floating point error?
divided by zero, inexact, overflow, underflow, invalid
If you want your code to run continuously without exiting
for this error, your compiler should have one option for
that, for Sun f77, it is the default.
With deguggers like dbx, you will find the exact location
of such error in your code and you will be able to see values
of some varialbes in stack.
Good luck,
s****s
发帖数: 8
48
I have F77 codes. On SGI Indigo2 R10000,
the comilation option in makefile is -O -mips4.
It ran very well.
But when I move to SUN blade2000,
I use comilation option:
-fast -xprefetch -xtarget=ultra3 -xchip=ultra3 -fns=yes -fsimple=2
it could pass compilation and generate excutable file. but when I run
it, it always show the fowlling info at the end:
Note: IEEE floating-point exception flags raised:
Inexact; Underflow;
Nonstandard floating-point mode enabled
See the Numerical Computation
s**l
发帖数: 30
49
want to use calloc in c to allocate memory dynamically in fortran,
because f77 can not support allocate memory dynamically.
I heard it is doable, who can help me and give me an example, like
allocate an array. Thanks.
s**s
发帖数: 242
50
under bash:
f77 options >& log
1 2 下页 末页 (共2页)