Sponsored Content
Full Discussion: Error running FORTRAN code
Top Forums Programming Error running FORTRAN code Post 302535489 by sandhyakg on Friday 1st of July 2011 12:18:43 AM
Old 07-01-2011
Hi LMHmedchem,

I attach here 5 files-
restart_20080515-001.txt,.........restart_20080515-004.txt and restart_20080515.txt which is the result of hcat.exe working on the first 4 files. The actual names of these files should be without the extension of .txt, but I added it just for the ease of uploading them here.
This is a case where the executable hcat.exe of the program swanhcat.ftn was successful in combining the 4 files restart_20080515-00(1...4) to generate restart_20080515. In this case I have run my model with 4 processors to generate the 4 files restart_20080515-00(1..4). When I work with more processors, more such files will be generated. The program swanhcat.ftn (serial program) fails to combine the files when the file numbers are large or may be when the total size of all the files exceeds some value.
Even I can see that the program should be able to handle 1000 files, which is much above any practical requirement.
I tried running the program in HPC(High performance computing), which is having 128GB RAM per node. I was given unlimited memory access to run the program, but it failed. I also tried in my PC with 12 GB RAM, still it failed.
 

9 More Discussions You Might Find Interesting

1. Programming

Error while running the C code

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

Making FORTRAN code more efficient

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

Getting error code when running the script 2 (RC)2

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

Help with make this Fortran code more efficient (in HPC manner)

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

Using Doxygen on Fortran code

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

Removing goto statements in FORTRAN code

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

Strange characters in FORTRAN code output

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

FORTRAN error *** glibc detected ***

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

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
MPI_Error_string(3)						      LAM/MPI						       MPI_Error_string(3)

NAME
MPI_Error_string - Return a string for a given error code SYNOPSIS
#include <mpi.h> int MPI_Error_string(int errcode, char *msg, int *plen) INPUT PARAMETERS
errcode - Error code returned by an MPI routine or an MPI error class OUTPUT PARAMETER
msg - Text that corresponds to the errorcode plen - Length of string NOTES
Error codes are the values return by MPI routines (in C) or in the ierr argument (in Fortran). These can be converted into error classes with the routine MPI_Error_class . These messages are provided in English (En_US - English/United States). If there is an interest in providing messages in different lan- guages, please submit requests to the LAM mailing list (see http://www.lam-mpi.org/contact.php ). NOTES FOR FORTRAN
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK ) have an additional argument ierr at the end of the argument list. ierr is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the call statement. All MPI objects (e.g., MPI_Datatype , MPI_Comm ) are of type INTEGER in Fortran. MORE INFORMATION
For more information, please see the official MPI Forum web site, which contains the text of both the MPI-1 and MPI-2 standards. These documents contain detailed information about each MPI function (most of which is not duplicated in these man pages). http://www.mpi-forum.org/ ACKNOWLEDGEMENTS
The LAM Team would like the thank the MPICH Team for the handy program to generate man pages ("doctext" from ftp://ftp.mcs.anl.gov/pub/sow- ing/sowing.tar.gz ), the initial formatting, and some initial text for most of the MPI-1 man pages. LOCATION
errstring.c LAM
/MPI 6.5.8 11/10/2002 MPI_Error_string(3)
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy