由买买提看人间百态

topics

全部话题 - 话题: fortran90
1 2 下页 末页 (共2页)
w*w
发帖数: 3
1
来自主题: Computation版 - Question about overloading in fortran90
I read a fortran90 book. It says subroutines and functions
can be overloaded in fortran90. But it seems this is not
true overloading. It can just realize polymorphism.
Say if I inherit a module from a parent module and I want
to overload a subroutine in the parent module but still
keepping the shape of the subroutine, i.e. arguments of the
subroutines are the same. Can this be done in fortran90?
x*********g
发帖数: 11508
2
来自主题: Unix版 - Help needed
depends on your shell. If you use bash,
export PATH=$PATH:/opt/fortran90/bin
if you use c shell
set PATH $PATH:/opt/fortran90/bin
for tcshell,
setenv PATH $PATH:/opt/fortran90/bin
better add these entries in your login, .profile .cshrc
xt
发帖数: 17532
3
来自主题: Military版 - 用过打孔的出来报道了
COBOL比FORTRAN早,但是还算灵活,虽然比较罗嗦。
FORTRAN77最大的问题是不支持动态数据结构,因为
FORTRAN是一个静态语言,所有东西都静态。这个在
Fortran90上改了。

发帖数: 1
4
fortran90他都不会,他用expect
s*******d
发帖数: 2
5
来自主题: JobHunting版 - job opening in Houston
nonprofit company
CFD engineer
Minimum Requirements:
Ph.D.
Fortran90
Other Requirements:
parallel computation
Star-CCM+
Fluent
If you are interested, drop me your resume: k****[email protected]
Thanks,
e*********e
发帖数: 5
6
来自主题: JobMarket版 - 招聘博士后-计算生物学
Computational Biologist Positions
Up to two postdoctoral positions are available immediately. Salary will be
determined based on experience.
Successful applicants will participate in exciting research projects
including but not limited to: (1) Vaccine design: next-generation
sequencing analysis will be used to understand the mechanism of antibody
maturation, to identify broadly neutralizing antibodies, and to optimize
antibody functions. Computational tools will be employed to analyze antibody
... 阅读全帖
e*********e
发帖数: 5
7
来自主题: SanDiego版 - 12-1月 广告: 招聘, 应聘
计算生物学的, 在Scripps.
Computational Biologist Positions
Up to two postdoctoral positions are available immediately. Salary will be
determined based on experience.
Successful applicants will participate in exciting research projects
including but not limited to: (1) Vaccine design: next-generation
sequencing analysis will be used to understand the mechanism of antibody
maturation, to identify broadly neutralizing antibodies, and to optimize
antibody functions. Computational tools will be employed to... 阅读全帖
d*********u
发帖数: 8521
8
Fortran 77啊,都忘得差不多了。
现在准备重学Fortran90
t****g
发帖数: 35582
9
来自主题: PhotoGear版 - 佛爷们,推荐本python的书?
Fortran90会不?
D****y
发帖数: 2207
10
来自主题: Joke版 - Python 比PHP 好用
指针是Fortran 90才引入的Fortran77里只有common block没有指针,写过Fortran77编
译器的飘过。
Fortran90里的指针其实也是基于common block扩展出来的,所以有限制。
x*******r
发帖数: 6
11
来自主题: Programming版 - 请教一个排序的问题。
数据类型:REAL (single precision)
我的程序是MPI fortran90,用的机器是IBM p690
编译:mpxlf90 (Fortran MPI Compiler),我在编译选项里加了-q64(Enables 64 bit
compilation)
程序里sorting这部分实际上还是串行程序,我把整个数据都集中到一个processor(每
个processor是8G内存)上来算。
再请教一个问题:我是个编程新手,一直不太明白64位/32位的系统的含义,像您说的
“64位系统的整数仍然是32位”,我就不太明白是什么意思?
以前搜索过,看到有人提到32位系统无法对2G以上寻址,所以像我处理的这种4G的就需
要64位。我就生愣愣的在我原先的编译命令上加了一个-q64。但是,我很想知道如果用
64位编译,我的程序需要做什么相应的变化吗?还有,这个32位/64位和精度有什么关
系吗?
再次感谢!
P*****f
发帖数: 2272
12
来自主题: Programming版 - 请教一个排序的问题。
目前64位系统中的标准是LP64,即:
int:32bit
long:64bit
pointer:64bit

数据类型:REAL (single precision)
我的程序是MPI fortran90,用的机器是IBM p690
编译:mpxlf90 (Fortran MPI Compiler),我在编译选项里加了-q64(Enables 64 bit
compilation)
程序里sorting这部分实际上还是串行程序,我把整个数据都集中到一个processor(每
个processor是8G内存)上来算。
再请教一个问题:我是个编程新手,一直不太明白64位/32位的系统的含义,像您说的
“64位系统的整数仍然是32位”,我就不太明白是什么意思?
以前搜索过,看到有人提到32位系统无法对2G以上寻址,所以像我处理的这种4G的就需
要64位。我就生愣愣的在我原先的编译命令上加了一个-q64。但是,我很想知道如果用
64位编译,我的程序需要做什么相应的变化吗?还有,这个32位/64位和精度有什么关
系吗?
再次感谢!
F********E
发帖数: 1025
13
Hi,
I have the following fortran90 code:
**********************************************
TYPE :: CPLK
REAL(8), DIMENSION(:), POINTER :: CP
TYPE(CPLK),POINTER :: NEXT
END TYPE CPLK
...
allocate CPLK linked list
let CPTR point to the last link
...
IF ( ASSOCIATED (CPTR) ) THEN
WRITE(OUTU,*)' deallocate this layer'
DEALLOCATE(CPTR)
ENDIF
***********************************************
Execuation o
i**g
发帖数: 134
14
来自主题: Programming版 - 一个fortran问题:
按fortran90的语法,可能会清晰一些
character(len=1),dimension(SRNAME_LEN) :: SRNAME_ARRAY
数组包含SRNAME_LEN个元素,每个元素可以保存1个字符

找到。
t*****n
发帖数: 4908
15
来自主题: Programming版 - 求推荐:fortran好用的debug软件
其实是这样的:如果你是为了算个公式,用什么都差不多,什么fortran,python,
java。反正都可以得个结果。写完了就扔了。文章也发了,学位也拿到了。其实用
matlab更好,库多,有图形。速度都不是问题。我还用mathematica和mathcad写过程序
,都很好用。
如果要做个系统,或者是商业软件,那要好好考虑。用不支持面向对象的语言太辛苦,
可维护行非常差。我有过三年维护fortran代码的经历,说的是实话。fotran2003不知
道发展到什么程度了。fortran90/95应该还缺乏很多面向对象的基本特征。
其次要考虑到是语言的速度。如果是计算密集型的,建议用C/C++。

to
are
e***a
发帖数: 1661
16
fortran90
e***a
发帖数: 1661
17
fortran90
y**i
发帖数: 357
18
调程序时偶然发现的,只要将以下五行加到Fortran90的程序中,再让f90来编译就可以让f90当掉. 在UltraSparc10上可以吃掉300M内存,生成的.o有160M.
(这Code是标准的f90,没有任何语法错误, 用Compaq(DEC)的VisualFortran编译就没问题。)
下面就是,考下来,取名blow.f90, 然后运行 f90 -c blow.f90
Program Blow
INTEGER, PARAMETER :: s = 5000000 !! s must be a large number
DOUBLE PRECISION a(s)
DOUBLE PRECISION b(s)
DOUBLE PRECISION c(s)
REAL :: r=1.1 !! can assign 'r' any type, integer, double precision ...
End Program Blow
让f90编译器傻掉的是最后一句:'REAL :: r = ...', 我搞不懂为什么会这样,写成
'REAL
v****m
发帖数: 26
19
来自主题: Unix版 - parallel computation
请教各位,在unix下用fortran90怎么实现parallel计算,可利用多cpu。据说只需编译时
指定某一命令
有没有那位给说一说。多谢。
l********g
发帖数: 59
20
来自主题: Unix版 - Help needed
I want to add /opt/fortran90/bin to $path, how can I do this? Using set?
Thanks.
w*******g
发帖数: 99
21
来自主题: Computation版 - 哪里有Fortran教程可下?
The best way is to get some books from library, I think most library has
plenty of books about fortran (both 77 and 90). I just used altavista to
search fortran and I think there are a lot of tutorials... You might want to
try
http://www.scd.ucar.edu/tcg/consweb/Fortran90/F90Tutorial/tutorial.html
If you like to read Chinese version you can use SSReader to download some
fortran books... If you have enough programming experience I don't think it
will take you long to learn fortran. Good luck!
p****e
发帖数: 468
22
来自主题: Computation版 - where to down a standard Fortran90 complier?
刚下了一个 elf90 (Essential LF 90), doesn't work for standard Fortran 90
files, faint. where I can down a standard complier?
t****n
发帖数: 39
23
来自主题: Computation版 - where to down a standard Fortran90 complier?
Are you using linux? Intel has a free f90 compiler for Pentium processors,
including the new Pentium 4 processor and the 64-bit Intel Itanium processor.
http://www.intel.com/software/products/compilers/f50/linux/noncom.htm
p****e
发帖数: 468
24
来自主题: Computation版 - where to down a standard Fortran90 complier?
no, unfortunately.
t****n
发帖数: 39
25
来自主题: Computation版 - where to down a standard Fortran90 complier?
What's the extension of your fortran source file? Some f90 compiler support
both f90 and f77. You must end your source file with .f90 then the compiler
will consider it as a F90 file. Just my 2 cents. :)
p****e
发帖数: 468
26
来自主题: Computation版 - where to down a standard Fortran90 complier?
I used .f90 . It is a F90 compiler, just not a standard one.
s*****l
发帖数: 167
27
来自主题: Computation版 - where to down a standard Fortran90 complier?
Go to smth. There are may posts about that. Maybe you can transfer some here.
g****n
发帖数: 13
28

我发现Vim6.0对Fortran77/Fortran90 的autoindent 都不好
do i=1,10
do j=1,10
....
end do
end do
t**********g
发帖数: 85
29
来自主题: Computation版 - Portland fortran problem, need help!
I am trying to compile a parallel fortran package in a beowulf cluster,
my compiler is Portland Fortran90. I got a very strange problem, following is
error message, does anybody know what's the problem?

make
pgf90 -O -lfmpich -lmpich skgen.f -c
pgf90 -O -lfmpich -lmpich zxssq.f -c
pgf90 -O -lfmpich -lmpich ludec.f -c
pgf90 -O -lfmpich -lmpich luelm.f -c
pgf90 -O -lfmpich -lmpich uertt.f -c
pgf90 -O -lfmpich -lmpich func.f -c
pgf90 -O -lfmpich
s*****l
发帖数: 167
30
来自主题: Computation版 - something strange in fortran90
I wrote a program with 2 subroutines, say I have
program main
contains
subroutine pg1
...
real(8) :: x(20)
call pg2
end subroutien pg1
subroutine pg2
...
print*, x(10)
end subroutine pg2
Even if I donot pass x to from pg1 to pg2,
and I donot have any variable x in pg2,
I can still find x in pg2!
actually I can print it, or compute it.
what is wrong?
f*******d
发帖数: 339
31
来自主题: Computation版 - something strange in fortran90
"contains" declare the subroutine or function as internal, which has access to all
variables of the module or other internal subroutines in the same module. If you
don't want this behavior, do not use "contains"
y***r
发帖数: 1845
32
来自主题: Computation版 - something strange in fortran90
你说错了。他是因为没有使用显式声明。试一试下面的程序
program test
implicit none
call p1

contains
subroutine p1
implicit none
real x
x = 20
call p2
end subroutine p1
subroutine p2
implicit none
print *, x

end subroutine p2
end program test
You will meet a severe err if your compiler is okay.
f*******d
发帖数: 339
33
来自主题: Computation版 - something strange in fortran90
What I said was correct (see your F90 manual description about "contains").
But it is also true that if you use implicit none in the subroutine,
it will prevent the internal subroutines to reference other internal
subroutine.
Nevertheless, even in that case they can still access the variables in the
main program.
Instead of the example you give, try the following:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
program test
implicit none
real x
call p1

contains
subroutine p1
implicit none
x
s*****l
发帖数: 167
34
来自主题: Computation版 - something strange in fortran90
Thanks guys!
But suppose that you have quite a few variables
and probably one of them has the same name as
another in the main program, it could be dangerous.
I guess I better off writing a module to gather all
the subroutines.
There is no way to claim LOCAL variable?
f*******d
发帖数: 339
35
来自主题: Computation版 - something strange in fortran90
I think the idea is that if a subroutine does not need to access the
variables in the host, it should not be made internal (i.e. "contains" should not be used).
Also, if some variables and routines are often used at the same time, you should make them
a module, and explicitely specify "use" this module when necessary. Occasional use of
local variable in the internal subroutine can be declared by making the implicit none statement
in the subroutine, as in yager's example.
a******s
发帖数: 232
36
来自主题: Computation版 - 详细介绍Fortran 77的站点

~~~~~~~~~~~你怎么做的? fortran90可以实现我知道,但是fortran 77好象
不行吧?要不你show一个简单的例子?
S***y
发帖数: 186
37
来自主题: Computation版 - Re: f90 and mpi
mpif77, mpif90 ... are just so-called "wrapper" compiler.
They are practically not "real" compilers.
They need to call some background Fortran compilers to
carry out a complete compilation.
So, when installing the MPI, if the mpif77 is linked to
a Fortran90 compiler, such as pgf90 under Linux,
even mpif77 can compiler Fortran 90 programs in which
the MPI subroutines are called.
l***s
发帖数: 11
38
来自主题: Computation版 - how to assign values to NETCDF file?

actually,I got acquainted with NETCDF using c/fortran77,
in http://www.unidat.ucar.edu
there are lot of information about netcdf,
current version of netcdf is 3.5.0 or 3.5.1 maybe,
of course,there are netcdf for fortran90 and java,or perl,python,ruby,a
nd matlab
in my opinion, you'd better to begin with c, it's most compact, very easy to
understand.
hope it would make any sense.
s*****l
发帖数: 167
39
来自主题: Computation版 - Fortran77支持递归(recursion)吗?
Fortran90 does.
there is a tool called f2f90
p*******e
发帖数: 3
40
来自主题: Computation版 - 有没有free的Fortran Compiler阿?
有谁知道哪里有free的Fortran90 Compiler可以下载?
谢谢了!
s**i
发帖数: 381
41
来自主题: Computation版 - scientific computing还是Fortran90好阿
最近用了一段时间C++,
STL很爽
但是scientific computing不够阿
又用了用MTL, Blitz++
都不是很完善阿
而求处理向量,矩阵Fortran 90简直太自由,太方便了,而求非常efficient
不过要看portability, 封装性等等,C++还是有很多优点的
而求C++ compiler 选择也比较多,还有free的
g95还要等一段时间吧
b**g
发帖数: 335
42
来自主题: Computation版 - scientific computing还是Fortran90好阿
Fortran 90有高效的free compiler的,
去Intel网站找找
s**i
发帖数: 381
43
来自主题: Computation版 - scientific computing还是Fortran90好阿
ifc and icc are not free for research purpose.
If you use it for your PhD study, strictly it is illegal.
Refer to the FAQ of icc.
h***o
发帖数: 539
44
来自主题: Computation版 - scientific computing还是Fortran90好阿
oh...我用它在我的机器上debug用。真正的结果都是在学校的机器上算的,
应该可以吧。hoho
x*****u
发帖数: 3419
45
来自主题: Computation版 - scientific computing还是Fortran90好阿
link ?
r*****d
发帖数: 54
46
来自主题: Computation版 - scientific computing还是Fortran90好阿
g95现在好象还可以吧,我用他编译了一个10万行的程序包,
只改了十来处
a**a
发帖数: 416
47
来自主题: Computation版 - scientific computing还是Fortran90好阿
what about the performance compared to commercial compilers?
b**g
发帖数: 335
48
来自主题: Computation版 - scientific computing还是Fortran90好阿
ftp://download.intel.com/software/products/compilers/downloads/
S***y
发帖数: 186
49
来自主题: Computation版 - scientific computing还是Fortran90好阿

no good. For my program, 20-30% slower than ifort.
but two monthes ago, I still can't use it to compile my program.
So, it's stilll good to see the progress in g95. :)
S***y
发帖数: 186
50
来自主题: Computation版 - scientific computing还是Fortran90好阿

no so strict la, who cares...
1 2 下页 末页 (共2页)