Jump to content
Stephni

Fortran 77 program [solved]

Recommended Posts

Hi guys

I have a code written by fortran 77, it has been working fine, but after I add some changes. I had comiled and does not give me any error messages, but when had the command ./a.out to display the results, it says killed, and I do not have no idea what this means.

please help me out :wall:

Share this post


Link to post
Share on other sites

Thanks, I work it out, do anyone know how to zip files in Linux and windows, also small question in presentation with LaTex, what is the command to add the slide number, e.g (1/25)

Share this post


Link to post
Share on other sites

to zip files use 'zip'!

 

for example: zip -r foo.zip foo

 

this will zip up the directory foo and all its contents into foo.zip

Share this post


Link to post
Share on other sites

I am disperte for help, I have produced plot by GNUPLOT ,

set terminal postscript

set output "figure.png"

 

but when I tried to insert them in presentation file(poster), it appears the postscripts lines not the figure

 

please help me out

Share this post


Link to post
Share on other sites

What's that got to do with "Fortran 77 program" ??? :huh: It doesn't help to ask questions about zipping and latex and gnuplot in a "fortran 77" thread!

 

But to answer your question, you just told it to output a postscript file and call it "figure.png". So that's what it did.

If you want a png file, use "set terminal png".

Share this post


Link to post
Share on other sites
What's that got to do with "Fortran 77 program" ??? :huh: It doesn't help to ask questions about zipping and latex and gnuplot in a "fortran 77" thread!
Agreed. This is not the way to get help here.

 

Stephni- Please let us know when your problems are resolved so we can mark the thread solved. Then when you have another question you can start a new thread with that title. This method will get you more help on this forum. :)

Share this post


Link to post
Share on other sites

You are absolutely right guys, just my thought was to reduce my space and put everything in one thread, so I can say all my current questions are resolved aprt from the Latex question, so I will put it in separate thread

Share this post


Link to post
Share on other sites

can anyone help me out in ......how to read a specific column id data file in FORTRAN 77, let say I have a data file of 5 columns , I need to read the third column.......

Share this post


Link to post
Share on other sites

I guess it depends whether you know how wide the columns are. Are they fixed width, or variable width?

If they're fixed, you can just cut them with the substring function, or use the READ command. If not then you'll either need to use regular expressions or a more basic search function...

Share this post


Link to post
Share on other sites

THanks for your help.......can I put the body of subroutine in separate file, and in the main program just write

 

include 'subroutine_name.f'

the same of including the numerical recipes...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...