06-27-2011
Error running FORTRAN code
Hi,
I am new to this forum and do not know whether this is the appropriate place to post this question. Anyway am trying my luck.
I have a fortran program swanhcat.ftn, which is part of a wave modelling system. There is also a file hcat.nml which is required to run this program. The program's job is to combine many files (say 250) into a single file. It is of course not concatenation. The program was compiled and run. It worked fine when the number of input files to the program was a certain number (say 180) and failed when there were more number of input files. I should say that the input files are big. I give below details of one such file.
-rw-r--r-- 1 osf staff 15208731 Jun 27 12:40 restart_20090101.00-132
Actually the files are like restart_20090101.00-001, restart_20090101.00-002..... restart_20090101.00-180 and are the outputs of a numerical model run using 180 processors. Each processor does some part of the model run and thus the final information is contained in the 180 files together. I am trying to combine the information into a single file using the swanhcat.ftn program. It was a success when I tried with 180 processors (there were 180 input files).
When I tried with 181 input files(or higher), the program failed saying
'segmentation fault(core dumped)'. Does it have to do something with the memory used by the program?
How do I find out what is wrong?
Best regards,
s.
9 More Discussions You Might Find Interesting
1. Programming
Hi Sir,
I am running C program which include directfb.h header files.
root@lxdevenv:~/Desktop# vi n.c
root@lxdevenv:~/Desktop# gcc n.c -o n -I/usr/local/include/directfb -L/usr/local/lib -ldirectfb -lfusion -ldirect -lpthread -lm
n.c: In function ‘main':... (2 Replies)
Discussion started by: Ravikishore
2 Replies
2. Programming
Hi, I have a very large, very old FORTRAN code that I work with. The code is quite messy and I was wondering if I can speed up execution time by finding subroutines that code execution spends the most time in. Is there any kind of software I can use to see where the code spends most of the... (1 Reply)
Discussion started by: rks171
1 Replies
3. UNIX and Linux Applications
hi All,
we have a script to remove the files from particular path,when we tryingto run manually the script went to success and removed the files but the same script which is running by other team it got failed and giving the error "2 (RC)2 "..what is the cause of the failure..and we passing the... (2 Replies)
Discussion started by: nagavenkatesh
2 Replies
4. Programming
Hi there,
I had run into some fortran code to modify. Obviously, it was written without thinking of high performance computing and not parallelized... Now I would like to make the code "on track" and parallel. After a whole afternoon thinking, I still cannot find where to start. Can any one... (3 Replies)
Discussion started by: P_E_M_Lee
3 Replies
5. Programming
I am using doxygen for documenting my fortran code.
I want to write some notes after the header in different parts of the subroutine. Any idea what the tags should be as anything I write after the header is not displayed
... (0 Replies)
Discussion started by: kristinu
0 Replies
6. Programming
I have the code below and I want to remove the "go to" statements. Any idea how I can do it?
if (iorder == 0) then
tmincurrent = 1.0e11
if(ireverse == 0 .or. istop /= 1) then
do i = 1, 6
if ((side(i) /= sidelimit(i)) .and. (tminside(i) < tmincurrent)) then
... (1 Reply)
Discussion started by: kristinu
1 Replies
7. Programming
Hi guys,
After compiling a .f90 code and executing it, i get strange characters in the output file like :
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
Are these windows characters? how can i get rid of this?
Much appreciated.
Paul (1 Reply)
Discussion started by: Paul Moghadam
1 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I'm doing aproximation of derivative called five-point stencil. For every value of x, in interval , in step... (0 Replies)
Discussion started by: antonija
0 Replies
9. Programming
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
LEARN ABOUT DEBIAN
somnec
SOMNEC(1) General Commands Manual SOMNEC(1)
NAME
somnec - Compute Sommerfield-Norton Ground Grids
SYNOPSIS
somnec
DESCRIPTION
somnec is a program to generates grids used by the NEC2 program for the Sommerfeld-Norton approximation to realistic grounds. It allows
interactive user input of relative dielectric constant, ground conductivity, and frequency in MHz. The output for use by nec2 is written
out as binary unformatted file. The program .B nec2 reads this in, if the Sommerfield Norton Ground is specified in the nec2 input cards
by the presence of a suitable suitable Ground Parameters Card i.e. a GN card with IPERF set to 2 (coluns 3-5). Hence the user is also
prompted for a file name, and the grid arrays are written to the file.
OPTIONS
Due to the age of the program, it expects its input to be in the form of punched cards fed into a hopper. It doesn't currently take any
options, instead the name of the input and output files must be entered once the program has been run.
SEE ALSO
nec(1)
It is fully documented as part of the report Numerical Electromagnetics Code (NEC) -- Method of Moments", available as a printed publica-
tion in three parts covering the theory of operation, the program code and the users' manual.
BUGS
This program was keyed in by hand from a printed listing. Thus it is possible that some extra bugs have been introduced. Unformatted
binary files are often a fortran minefield, particuarly if transported between systems.
AUTHOR
This manual page was written by <alanb@chiark.greenend.org.uk>. The original program was developed by G. J. Burke and A. J. Poggio of
Laurence Livermore Laboratory.
SOMNEC(1)