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 DEBIAN
nypatchy
NYPATCHY(1) General Commands Manual NYPATCHY(1)
NAME
nypatchy - tool to work with specialized-format patches
SYNOPSIS
nypatchy pam fort cradle print cc as data [ fort2 cc2 as2 data2 ]
DESCRIPTION
nypatchy is a tool for working with Patchy Master Files (PAM files). A PAM file is an ordinary text file (generally with a three-letter
extension of ".car") that holds source code interleaved with special pre-processing instructions for nypatchy. The source code may be in
C, FORTRAN, assembly language, or a combination of these. The pre-processing instructions allow one to maintain separate optional patches
independently, for instance in the case of architecture-specific code. Details of the pre-processing commands used by nypatchy are beyond
the scope of this man page; the reader should refer to the full manual available from CERN.
Telling nypatchy which set of patches to use may be done on standard input or via a so-called cradle file. Typically the cradle file will
contain one or more +USE statements as well as +EXE and +QUIT, for instance in the case of the isajet Monte Carlo generator:
+USE,*ISAJET
+EXE
+PAM
+QUIT
USAGE
In the command line shown above, pam is the PAM file, if any. fort is the name of the primary output source code file, if any. cradle is
the name of the cradle file, if any (default is standard input, for instance a here-doc). print is the name of the file to receive printed
output (the default is standard output). cc, as, data are the names of the source code output files for data types CC, AS, DATA. The
remaining parameters are the source code output files to receive diverted material for respective data types FORT, CC, AS, DATA.
Parameters may be omitted by substituting a dash - for them. Trailing parameters may be cut short by giving "." or ".go"; the latter com-
mences execution immediately rather than starting the nypatchy interactive prompt.
nypatchy will return to the shell a code of 0 if successful, 1 if there is a warning, and 2 if an error occurs. Since the program stops
creating output, but continues to run (in order to check for further errors) if an error occurs, the user should be sure to test the error
code $? after any nypatchy run.
EXAMPLES
nypatchy -- xyz .go
reads the cradle (instructions) from file xyz.cra, which must list all other files to be used.
nypatchy .go << EOF
<cradle>
EOF
has the cradle given as a here-document.
nypatchy zebra.car zebra.fca zebra.cra zebra.lis .go
reads the PAM file zebra.car, outputting the resulting source code to zebra.fca, taking the cradle from zebra.cra, with printing
done to zebra.lis.
SEE ALSO
fcasplit(1), nycheck(1), nydiff(1), nyindex(1), nylist(1), nymerge(1), nyshell(1), nysynopt(1), nytidy(1), yexpand(1)
The reference manual for the Nypatchy suite of programs is available in compressed PostScript format at the following URL:
http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/p5refman.ps.gz
Running the command "nypatchy help .no" also gives some brief help on usage.
AUTHOR
This manual page was written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux system (but may be used by others). It is
licensed under the GNU General Public License, version 2 or later (at your choice).
COPYRIGHT
Copyright (C) Kevin B. McCarty, 2008.
Mar 12, 2008 NYPATCHY(1)