Fortran program issue

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Fortran program issue
# 1  
Old 06-01-2012
Fortran program issue

1. The problem statement, all variables and given/known data:
I was given this program to work with that is supposed to work as it is. It comes with a makefile so all I should have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the fort.51 file. The initial conditions can be modified in continue.f.

It sounds simple enough, but I can't get it to work - after executing the program, my tcsh shell disappears, nothing happens and the fort.51 file just stays empty. Could anyone perhaps look at the program and see what is going wrong?

http://www.students.science.uu.nl/~3418138/ZC.tar


2. Relevant commands, code, scripts, algorithms:
Nothing.


3. The attempts at a solution (include all code and scripts):
I've tried using a bash shell, but the result is the same. The program should work as it is according to my professor, so I'm stumped as to why it doesn't do anything.

4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Universiteit Utrecht, Utrecht, The Netherlands, Professor H. van Dijk, no course ID available.
# 2  
Old 06-02-2012
Please post your Operating System and version.
Are you compelled to use tcsh? That Shell is rarely used in Systems Administration.

Please post the example in plain text. Most of us would not download a tar file without knowing exactly what is in the file (that is if our browser allows it at all).

Please post an example of what you typed and what happened.
# 3  
Old 06-03-2012
I can only use bash or tcsh, but it works on neither. I've attached a picture of what I'm doing. It was supposed to work this way, so I was told. The output should appear in the fort.51 file. If I open it with 'vi fort.51' however, it's empty.
Fortran program issue-programjpg
# 4  
Old 06-04-2012
I downloaded the linked tar file into a VM and unpacked it. It contains some FORTRAN source files, a makefile, and some nondescript files. The makefile specifies the Portland compiler, which is commercial software. I have no license for this, so i could not compile the source - at least not in the way it is supposed to be compiled.

But there is an executable "blub", which seems to be what the makefile produces, so i tried to run this. Unfortunately it complains about a commercial library for numeric operations (NAG libraries) which is missing Obviously the version of "blub" in the tar-file is linked against that library.

Sorry, but i can't help you - i won't buy a compiler or a library just for tests. Probably all the others here will see that the same way.

I had a cursory glance at the source, but there is nothing obviously wrong. That does not necessarily mean that the program is correct, but there is no trivial error to spot.

Good luck.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Error in my FORTRAN program

I have a Fortran program and I am writing out to logical unit 7. The program is reading from a text file and writing to the new file formatted. It gets through the read and writes some to the file but then stops with the following error: 1525-013 The sequential WRITE statement cannot be... (5 Replies)
Discussion started by: KathyB148
5 Replies

2. Programming

FORTRAN program to extracting column

Dear folks I have a large data set which contains 400K columns. I decide to select 50K determined columns from the whole 400K columns. Is there any suggested fortran program which could do this process for me? I need to also mention that I store all of the columns id in one file which may help... (1 Reply)
Discussion started by: sajmar
1 Replies

3. Programming

File Program issue in c

B17 -> B19 ; B17 -> B21 ; B18 -> B19 ; Can any one help with the pointer solution to check for this -> symbol and one it finds the symbol it should move behind 4 characters and store the string B17 in an array and then move 4 characters ahead and similarly save B21 likewise for each line... (7 Replies)
Discussion started by: zinat
7 Replies

4. Shell Programming and Scripting

FORTRAN Compiler

Need assistance in Fortran Compiler I need to install Fortran compiler on Linux distribution . I don't have root access to use rpm or yum to install compiler . Is there any way I can get it ? Are there any sites that has fortran compiler . Any links to download and install . (10 Replies)
Discussion started by: ajayram_arya
10 Replies

5. Linux

Fortran compile issue

I was given this program to work with and it was supposed to be simple for someone like me who knows nothing of Fortran or Unix. It comes with a makefile, so all I have to do is use the make command, then type ./blub to execute the program. A list of data should then appear in the fort.51 file. The... (1 Reply)
Discussion started by: Arjani
1 Replies

6. Linux

fortran compilation issue

Hi, I am getting following error when i try to compile : Error: Expected variable in READ statement at (1) read(12,*) ((l1to2(l,j),j=1,2),l=1,ngl(2,4)) Also i am getting following error : Error: Syntax error in COMMON statement at (1) at some statements. I am using mpif90... (1 Reply)
Discussion started by: aksharb
1 Replies

7. Solaris

Issue in pro*C program compiled in solaris 10

Hi, We upgraded our servers from solaris 9 to 10. We recompiled all the Pro*C programs with the new oracle version as well. Oracle is 11g. We are facing core dump with the below error for certain executions. But when we are placing new statements between the error fucntion we get junk values to... (1 Reply)
Discussion started by: saroopkris85
1 Replies

8. Programming

Problems while linking Fortran program (-> undefined reference to...)

Hello, we are a group of students (mechanical engineering) who are trying to port UNIX-software to a PC Linux system during a study project. The first goals were achieved: compiling the Fortran code and creating object files. However, we encounter errors during the linking process. This is... (0 Replies)
Discussion started by: Dynamo
0 Replies

9. Programming

issue with fastcgi program

Hello, I am strugglign with the following fastcgi C++ program with access to a postgresql database through the SOCI library. All the components work individually properlyy but the combination does not. The program compiles fine but the Apapche 2.2 error log files contains: FastCGI: comm... (0 Replies)
Discussion started by: JCR
0 Replies

10. UNIX for Advanced & Expert Users

Setuid Program with (-rwsr-sr-x 1 root other ) UID/EUID issue

Hi, I have a program with the following suid setup -rwsr-sr-x 1 root other 653 Aug 16 17:00 restart_server It basically starts up a service that has to be started by root. I just want the normal users to be able to restart the service using the script above. But when the... (7 Replies)
Discussion started by: 0ktalmagik
7 Replies
Login or Register to Ask a Question