LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-18-2005, 08:55 AM   #1
gambato79
LQ Newbie
 
Registered: May 2005
Posts: 8

Rep: Reputation: 0
Unhappy compile file .x with g77


hi!
I have fedora core4 and I wnat to compile my fortran program with g77 but after giving the comand : ./namefile.x the computer tell me :
write start: can't write file
apparent state: unit 84 named Energy
last format: (I6,5(1X,G13.6))
lately writing sequential formatted external IO
Aborted
Why does it happen? I made the same procedures with fedora core3 and it's work well.
how can I solve my problem?...can you help me?
thank you very much

Cristina
 
Old 07-19-2005, 02:30 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
something is wrong with the code...
did you get a sucessfull compilation message? how did you compile it?
if the code is not so big, could post it? if it is big, please post only the relevant part...
you are trying to write something that is not working...
regards
slackie1000
 
Old 07-19-2005, 07:21 AM   #3
gambato79
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Question

hi!
thank you very much...but I solved that problem, and now I have an other one! I compiled my file .f with g77 and all is ok but when I execute it ( command: ./file.x) I have this error:
PAUSE statement executed
To resume execution, type go. Other input will terminate the job.
Why?What I have to do?
thank you for your help

cristina
 
Old 07-19-2005, 07:49 AM   #4
gambato79
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Question hi! thank you very much...but I solved compile with g77

hi!
thank you very much...but I solved that problem, and now I have an other one! I compiled my file .f with g77 and all is ok but when I execute it ( command: ./file.x) I have this error:
PAUSE statement executed
To resume execution, type go. Other input will terminate the job.
Why?What I have to do?
thank you for your help

cristina
 
Old 07-19-2005, 08:04 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
do you know FORTRAN? the kind of messages are pretty clear. look for the PAUSE keyword in your code...somehow i feel that this code is not clear for you...
you need to post the code otherwise i can't find the error.
regards
slackie1000
 
Old 07-19-2005, 08:06 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
type go like it says? :P

i dont know if that's right but that's what it's telling you to do
 
Old 07-19-2005, 08:28 AM   #7
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
double..reported..
see other thread in the same forum
regards
slackie1000
 
Old 07-19-2005, 08:38 AM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
Both g77 threads are merged as they are part of the same question.
 
Old 07-19-2005, 09:48 AM   #9
gambato79
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Question

I think that the error depends from the following subroutine for generating random numbers:
c*****************RANDOM NUMBER GENERATOR ***********************
c This function has been taken from "Numerical recipes"
c*****************************************************************
FUNCTION RAN1(IDUM)
DIMENSION R(97)
PARAMETER (M1=259200,IA1=7141,IC1=54773,RM1=3.8580247E-6)
PARAMETER (M2=134456,IA2=8121,IC2=28411,RM2=7.4373773E-6)
PARAMETER (M3=243000,IA3=4561,IC3=51349)
DATA IFF /0/
SAVE
IF (IDUM.LT.0.OR.IFF.EQ.0) THEN
IFF=1
IX2=MOD(IA2*IX2+IC2,M2)
IX3=MOD(IA3*IX3+IC3,M3)
J=1+(97*IX3)/M3
IF(J.GT.97.OR.J.LT.1)PAUSE
RAN1=R(J)
R(J)=(FLOAT(IX1)+FLOAT(IX2)*RM2)*RM1
RETURN
END

but I didn't understand because it gives same problems, I have already used it many times!
 
Old 07-19-2005, 11:35 AM   #10
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
Quote:
Originally posted by gambato79
IF (IDUM.LT.0.OR.IFF.EQ.0) THEN
how can you compile this? where is the "endif"???
what kind of compiler are you using?
regards
slackie1000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install of g77 or g77 rpm munichtexan Linux - Newbie 1 11-18-2005 02:56 PM
g77 compiling problem appopson Programming 1 05-17-2005 08:35 AM
compile( gcc-g77) fortran with fedora core 3 gambato79 Programming 1 05-06-2005 12:49 PM
g77: 8 btyes on the PC? shengchieh Programming 0 01-14-2005 03:52 PM
g77 is not... Jozsef Linux - Software 4 10-08-2004 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration