Results 1 to 3 of 3
Dear all,
Forgive me if this is not the proper place to raise this question.
I am doing fortran programming and met a problem with "call system()". There are a ...
- 04-14-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 1
linux call system
Dear all,
Forgive me if this is not the proper place to raise this question.
I am doing fortran programming and met a problem with "call system()". There are a few I/O unit defined before this call system(), and later after call system() they are all lost and results in the crush of the whole program because the program cannot read those files. I am wondering if there is a way to solve this problem.
I am using fortran 77 with ifort compiler, the system I am using is Red Hat 4.1.2.
Any suggestions are highly appreciated. Thanks.
- 04-15-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Sorry, no clue. Even particle physicists these days have eschewed fortran for C++. Perhaps the system() call is munging with your environment, or somehow you have overwritten some variables. Have you tried running this in the debugger?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-16-2010 #3Linux Engineer
- Join Date
- Apr 2006
- Location
- Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
- Posts
- 1,117
Hi.
The usual questions:
What is the command that you ran via call system?
Did it work before you changed the code to use call system?
Do you have a small example of the code that fails?
Have you tried the code with gfortran, g95?
and so on ... cheers, drlWelcome - get the most out of the forum by reading forum basics and guidelines: click here.
90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
We look forward to helping you with the challenge of the other 10%.
( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )


Reply With Quote