06-01-2012
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 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 shell disappears and the fort.51 file stays empty. Could anyone perhaps look at the program and see if I'm doing something wrong?
http://www.students.science.uu.nl/~3418138/ZC.tar
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have a FORTRAN code that I want to compile using F90 compiler. However,
when I enter the command:
f90 ./code.f -o ./code.out
It would give me prompt saying that absoft license has failed, or something.
I remember, however, that I could enter some keyword that ends with 'soft'
in... (1 Reply)
Discussion started by: Iamthe great
1 Replies
2. Programming
Can anyone recommend a very good Fortran online course for unix. It should also cover Fortran X11 programming if possible. I understand this learning cannot be rushed but a course that addresses useful topics sooner is best. If it isn't free, that's okay. (1 Reply)
Discussion started by: gav2251
1 Replies
3. Red Hat
Hi,
I am using RedHat Linux 5.3 64bit OS.. When i try to compile apache 2.2.17. during the make install i am getting the below error. Appreciate your help.
rsync: link_stat
"/Application/softwares/softwares/httpd-2.2.15/docs/manual/." failed:
Permission denied (13)
rsync: cannot stat... (4 Replies)
Discussion started by: Krrishv
4 Replies
4. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
5. Linux
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
6. Linux
Hello everyone,
I am trying to compile a code under fedora14.Kernel Linux 2.6.35.6-45fc14.i686-GNOME 2.32.0. I use f77,g77 and gfortran to compile but I get the same error all ways.
Unsupported OPEN control item at (^) -- ACTION=, ASSOCIATEVARIABLE=, BLOCKSIZE=, BUFFERCOUNT=,... (1 Reply)
Discussion started by: miriammiriam
1 Replies
7. Homework & Coursework Questions
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... (3 Replies)
Discussion started by: Arjani
3 Replies
8. Shell Programming and Scripting
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
9. Programming
I am writing some code in fortran that defines certain shapes.
Currently I have a cuboid and a prism. Now a parallelepiped is both a cuboid and a prism. Is there a way to code this?
Currently I only have
Type, Extends (Cuboid) :: Parallelepipied
How can I do so that Parallelepipied is... (3 Replies)
Discussion started by: kristinu
3 Replies
10. Solaris
Hi all :)
I've been given a task to try and upgrade Samba on our legacy Solaris 9 (SunOS 5.9) sparc system. Its currently running samba 3.5.3 but we'd like to try and install 3.6.0 (or 3.6.25) to have minimal protocol smbv2.
When trying to install from source, it appears to configure fine,... (4 Replies)
Discussion started by: jimbob01
4 Replies
LEARN ABOUT OSX
mpi_status_f2c
MPI_Status_f2c(3OpenMPI) MPI_Status_f2c(3OpenMPI)
NAME
MPI_Status_f2c, MPI_Status_c2f - Translates a C status into a Fortran status, or vice versa.
SYNTAX
C Syntax
#include <mpi.h>
int MPI_Status_f2c(MPI_Fint *f_status, MPI_Status *c_status)
int MPI_Status_c2f(MPI_Status *c_status, MPI_Fint *f_status)
DESCRIPTION
These two procedures are provided in C to convert from a Fortran status (which is an array of integers) to a C status (which is a struc-
ture), and vice versa. The conversion occurs on all the information in status, including that which is hidden. That is, no status informa-
tion is lost in the conversion.
When using MPI_Status_f2c, if f_status is a valid Fortran status, but not the Fortran value of MPI_STATUS_IGNORE or MPI_STATUSES_IGNORE,
then MPI_Status_f2c returns in c_status a valid C status with the same content. If f_status is the Fortran value of MPI_STATUS_IGNORE or
MPI_STATUSES_IGNORE, or if f_status is not a valid Fortran status, then the call is erroneous.
When using MPI_Status_c2f, the opposite conversion is applied. If c_status is MPI_STATUS_IGNORE or MPI_STATUSES_IGNORE, or if c_status is
not a valid C status, then the call is erroneous.
The C status has the same source, tag and error code values as the Fortran status, and returns the same answers when queried for count,
elements, and cancellation. The conversion function may be called with a Fortran status argument that has an undefined error field, in
which case the value of the error field in the C status argument is undefined.
Open MPI 1.2 September 2006 MPI_Status_f2c(3OpenMPI)