createdomcase [SRC] [CPP] [JOB] [SCAN]
TOOLS / SCRIPTS



   1 | #!/bin/sh
   2 | 
   3 | echo " CREATEDOMCASE v1.0"
   4 | echo " Description : this script copies to the local directory the basic "
   5 | echo "               files needed by PRISSMA"
   6 | 
   7 | #
   8 | # Path definitions
   9 | #
  10 | 
  11 | LOCALDIR=`pwd`
  12 | WKDIR=$DOMHOME/WORK
  13 | 
  14 | #
  15 | # Linking DATA
  16 | #
  17 | 
  18 | ln -s $WKDIR/DATA/QUADRATURE ./QUADRA
  19 | ln -s $WKDIR/DATA/SPECTRAL ./SPECTRAL
  20 | 
  21 | #
  22 | # Creating IN/OUT directories
  23 | #
  24 | 
  25 | if [ ! -d 'INFILES' ]
  26 | then
  27 |   mkdir INFILES
  28 |   echo "INFILES directory created !"
  29 | fi
  30 | 
  31 | if [ ! -d 'OUTFILES' ]
  32 | then
  33 |   mkdir OUTFILES
  34 |   echo "OUTFILES directory created !"
  35 | fi
  36 | 
  37 | #
  38 | # Copying input file depending on version
  39 | #
  40 | 
  41 | if [ -f 'prissma.choices'  ]
  42 | then
  43 |   echo " prissma.choices file already present"
  44 | else
  45 |   if [ -f 'domasium.choices'  ]
  46 |   then
  47 |     mv domasium.choices prissma.choices
  48 |   fi
  49 |   cp $WKDIR/INPUT/prissma.choices .
  50 |   echo " prissma.choices not detected, copying default INPUT file. Check it out"
  51 | fi
  52 | 
  53 | echo " The basic files are now present in the directory."