RE: How to obtain the function of "INDLST"?

From: Dan Kirby <>
Date: Wed, 11 Mar 2009 16:00:44 -0000

Dear Hantao

I don't know anything about the INDLST function, but I have solved this
problem by writing a bash script which does this process for me. I usually
batch submit my jobs to our super cluster so I may have up to 80 nodes
running the same job broken down into smaller units. This produces of course
80 detector output files to combine with usxsuw/usbsuw, per each fortran
unit/detector. So a generalised version of the script (located and run from
$MYFLUKA) I use is as follows:

# Combines all output files

if [ -z $1 ]; then
        echo 'Input file name:'
        read FLUKAINP

if [ -z $2 ]; then
        echo 'Fortran unit number:'
        read unit

until [ -z $unit ]; do

## Use usbsuw/usxsuw as appropriate

$FLUPRO/flutil/usbsuw << EOF
`find *.$unit`


## Convert binary to ascii

$FLUPRO/flutil/usbrea << EOF

echo 'Combine another unit? (enter unit or leave blank to exit)'
read unit


echo 'Done'


I call this script 'comb', so you can run it like this:

$> comb [input] [fortran unit]

Or pass these variables after just running 'comb'.

Some notes:
- This is for use in a BASH shell only!
- If you have lots of different jobs' outputs together in $MYFLUKA, it will
pick them all up - but presumably you'll keep jobs in separate sub
directories otherwise it is messy!
- There may be more elegant solutions, but I'm not an expert and this works
for me!

I hope this helps with your particular problem...


-----Original Message-----
From: []
On Behalf Of Hantao Jing
Sent: 11 March 2009 15:28
Subject: How to obtain the function of "INDLST"?

Dear Fluka experts,
      When I calculate the neutron production from a W target impinged
by the proton beam, many files of the results obtained by USRBDX
detector produce. If I use the usxsuw to read the unformatted files, it
is very inconvenient and inefficient by inputting the files one by one.
So I hope that the computer can read all these files automatically if I
make some changes for the code of usxsuw.f. At present, I just know that
the GETFILEINFOQQ functions can read files in some folders in Compaq
Visual Fortran. When I try to compile the usxsuw.f by Compaq Visual
Fortran in windows operating system. There are linking error happening,

--------------------Configuration: usxsuw - Win32 Debug--------------------
usxsuw.obj : error LNK2001: unresolved external symbol _INDLST_at_16
Debug/usxsuw.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

This message tell me that the undlst function can't be found.
Could you tell me something about the undlst function? Or how can read
the output files automatically in Linux?
thank you very much!

               Hantao Jing
Received on Wed Mar 11 2009 - 23:47:11 CET

This archive was generated by hypermail 2.2.0 : Wed Mar 11 2009 - 23:47:11 CET