#!/bin/sh
#set -x
#
#
#       This file creates all environment variables which gives the names to
#       all subdirectories used in GENSYS package. Sorting of files into different
#       subdirectories is activated if the environment variable $gendir is defined 
#       and set equal to "yes".
#       In large projects with many files it is often practical to sort different
#       kind of files into different directories.
#       Normally the name of the subdirectory equals the name of the file extension.
#       However the following directories don't follow that rule
#
# Description                   File extension                       Directory
# ----------------------------------------------------------------------------
# Result files from MODAL       *.mode *.modf *.modjac               calcmod  
# Result text files from MPLOT  *.cata *.print *.resu *.stat2        mplotr  
# Graphic files                 *.dxf *.eps *.hgl *.pcl *.ps *.post  diags  
#
# File
# Ext.  Directory           Description
# ----------------------------------------------------------------------------
  cata=mplotr/           ;# File written by program MPLOT by command CATALO
  cmplx=miscr/           ;# Data file in complex format
  dxf=diags/             ;# Graphic file, format= Autocad DXF, written when ILASER= 5
  eps=diags/             ;# Graphic file, format= Encapsulated Postscript, written when ILASER= 7
  expf=expf/             ;# Expanded input data file to program CALC written by OPTI
  frespf=frespf/         ;# Input data file for program FRESP(CALC)
  gp=gp/                 ;# Result file written by program CALC, for animation in program GPLOT
  hgl=diags/             ;# Graphic file, format= HPGL-format, written when ILASER= 2
  id=id/                 ;# Result file written by program CALC, for postprocessing and plotting in program MPLOT
  id2=id/                ;# Part #2 of the .id-file, a direct access file containing all data for all curves
  inopti=.inopti/        ;# Expanded input data file to program OPTI
  kpff=kpff/             ;# Input data file for program KPF
  kpfl=kpfr/             ;# Result file program KPF left 
  kpfr=kpfr/             ;# Result file program KPF right
  list=list/             ;# Temporary ASCII-dump filer created by program CATAS, CATAF and CATA_GP
  log=log/               ;# Log file written by program CALC and MPLOT
  mauz=mauz/             ;# Track irregularity data file, written in format MAUZ
  modalf=modalf/         ;# Input data file for program MODAL(CALC)
  mode=calcmod/          ;# Eigen frequencies, written by program MODAL(CALC)
  modf=calcmod/          ;# Eigen mode shapes, written by program MODAL(CALC)
  modjac=calcmod/        ;# Jacobian, written by program MODAL(CALC)
  mp=mp/                 ;# Result files including the *.id- and *.id2-files plus the information
  mp2=mp/                ;#   created in the post processor MPLOT
  mplotf=mplotf/         ;# Input data files for program MPLOT
  mplotr=mplotr/         ;# Result files written by program MPLOT
  mtablef=mtablef/       ;# Input data files for program MTABLE
  mtabler=mtabler/       ;# Result files written by program MTABLE
  npickf=npickf/         ;# Input data file for program NPICK
  npicki=npicki/         ;# Node_intpl-file for program NPICK
  npickm=npickm/         ;# Message file, written by program NPICK
  npickr=npickr/         ;# Result file, written by program NPICK
  optif=optif/           ;# Input data file for program OPTI
  optir=optir/           ;# Result file written by program OPTI
  pcl=diags/             ;# Graphic file, format= PCL4 and 5, written when ILASER=4
  plas=plas/             ;# Track irregularity data file, written in format PLAS
  post=diags/            ;# Graphic file, format=  Postscript, written when ILASER= 1
  ps=diags/              ;# Graphic file, format=  Postscript, written when ILASER= 1
  predatf=predatf/       ;# Input data file for program PREDAT
  predatr=predatr/       ;# Result file written by program PREDAT
  predatm=predatr/       ;# Message file written by program PREDAT
  exp1f=predatr/         ;# Insert expanded file, written by program PREDAT
  exp2f=predatr/         ;# Substructure expanded file, written by program PREDAT
  print=mplotr/          ;# File written by command PRINT, in program MPLOT
  qout=qout/             ;# Standard output when the execution has been made in a queue-system
  quasif=quasif/         ;# Input data file for program QUASI(CALC)
# ral=ral/               ;# Rail profile data files
  resu=mplotr/           ;# Result summary written by program MPLOT
  runc=runc/             ;# Copies of input data files for program CALC
  runf=runf/             ;# Input data files for program CALC
  runf_infof=runf_infof/ ;# Input data files for program RUNF_INFO
  sngl=miscr/            ;# Data file in single precision
  stat2=mplotr/          ;# File written by command STAT2, in program MPLOT
  temp=/tmp/             ;# Work directory for the queue-system
  trac=trac/             ;# Track irregularity data file, written in format TRAC
  trax=trac/             ;# Track irregularity data file, written in format TRAX
  tsimf=tsimf/           ;# Input data file for program TSIM(CALC)
# whe=whe/               ;# Wheel profile data files
