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
FDK(1)								    Plastimatch 							    FDK(1)

NAME
fdk - cone-beam reconstruction from projections using the FDK algorithm The term FDK refers to the authors Feldkamp, Davis, and Kress who wrote the seminal paper "Practical cone-beam algorithm" in 1984. Their paper describes a filtered back-projection reconstruction algorithm for cone-beam geometries. The fdk program in plastimatch is an implmenetation of the FDK algorithm. FDK USAGE
The fdk program takes a directory of 2D projection images as input, and generates a single 3D volume as output. The command line usage is: Usage: fdk [options] Options: -A hardware Either "cpu" or "brook" or "cuda" (default=cpu) -a "num ((num) num)" Use this range of images -r "r1 r2 r3" Set output resolution (in voxels) -f filter Either "none" or "ramp" (default=ramp) -s scale Scale the intensity of the output file -z "s1 s2 s3" Physical size of the reconstruction (in mm) -I indir The input directory -O outfile The output file -F {F,H} Full or half fan bow-tie filter correction The usage of the fdk program is best understood by following along with the tutorials: fdk_tutorial_i and fdk_tutorial_ii. INPUT FILES
Three different formats of input files are supported. These are: o Pfm format image files with geomtry txt files o Raw format image files with geomtry txt files o Varian hnd files The pfm and raw files are similar, in that they store the image as an array of 4-byte little-endian floats. The only difference is that the pfm file has a header which stores the image size, and the raw file does not. Each pfm or raw image file must have a geometry file in the same directory with the .txt extension. For example, if you want to use image_0000.pfm in a reconstruction, you should supply another file image_0000.txt which contains the geometry. A brief description of the geometry file format is given in proj_mat_file_format. The sequence of files should be stored with the pattern: XXXXYYYY.ZZZ where XXXX is a prefix, YYYY is a number, and .ZZZ is the extension of a known type (either .hnd, .pfm, or .raw). For example the following would be a good directory layout for pfm files: Files/image_00.pfm Files/image_00.txt Files/image_01.pfm Files/image_01.txt etc... The Varian hnd files should be stored in the original layout. For example: Files/ProjectionInfo.xml Files/Scan0/Proj_0000.hnd Files/Scan0/Proj_0001.hnd etc... No geometry txt files are needed to reconstruct from Varian hnd format. IMAGE GEOMETRY
By default, when you generate a DRR, the image is oriented as if the virtual x-ray source were a camera. That means that for a right lat- eral film, the columns of the image go from inf to sup, and the rows go from ant to post. The Varian OBI system produces HND files, which are oriented differently. For a right lateral film, the columns of the HND images go from ant to post, and the rows go from sup to inf. An illustration of this idea is shown in the figure below. [image] Geometry of Varian HND files.UNINDENT AUTHOR
Plastimatch is a collaborative project. For more documentation, please visit http://plastimatch.org. For questions, comments, and bug reports, please visit http://groups.google.com/group/plastimatch. COPYRIGHT
Plastimatch development team (C) 2010-2011. You are free to use, modify, and distribute plastimatch according to a BSD-style license. Please see LICENSE.TXT for details. Plastimatch 1.5 June 11, 2011 FDK(1)
All times are GMT -4. The time now is 07:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy