4if [ -z $JPP_DIR ]; then
 
    5    echo "Variable JPP_DIR undefined."
 
    9source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
 
   11set_variable:  DEBUG       ACOUSTICS_DEBUG       2
 
   12set_variable:  WORKDIR     ACOUSTICS_WORKDIR     ./
 
   13set_variable:  RATIO       ACOUSTICS_RATIO       0.1
 
   14set_variable:  PRESCALE    ACOUSTICS_PRESCALE    1
 
   15set_variable   DIR         $JPP_DIR/examples/JAcoustics
 
   16set_variable:  FORMAT      GRAPHICS_FORMAT       gif
 
   17set_variable+  BATCH       GRAPHICS_BATCH        -B
 
   20    usage "$script <detector file> (input file)+"\
 
   21          "\nInput file corresponds to the output of JKatoomba[.sh]."
 
   25    fatal "Wrong number of arguments."
 
   28set_variable  DETECTOR            $argv[1]
 
   29set_array     INPUT_FILES         $argv[2,-1]
 
   31eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
 
   34JAcoustics.sh   $DETECTOR_ID
 
   36for INPUT_FILE in $INPUT_FILES[*]; do
 
   42        -V $WORKDIR/sound_velocity.txt               \
 
   43        -M $WORKDIR/mechanics.txt                    \
 
   50if [[ "$BATCH" != "" ]]; then
 
   51    make_movie.sh  A_[0-9]*.gif