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



   1 | #!/bin/sh
   2 | 
   3 | echo " SOLINIT_INTERP1D v1.0"
   4 | echo " Description : tool to create an initial solution for PRISSMA"
   5 | 
   6 | #
   7 | # Path definitions
   8 | #
   9 | 
  10 | LOCALDIR=`pwd`
  11 | CHOICESD=$DOMHOME/TOOLS/CHOICES
  12 | PERSODIR=$DOMHOME/TOOLS/INCLUDE
  13 | TOOLDIR=$DOMHOME/TOOLS/SOLINIT_INTERP1D
  14 | 
  15 | #
  16 | # Detect if all files are ready for run
  17 | #
  18 | 
  19 | ECHOICES=0
  20 | EPERSO=0
  21 | DORUN=1
  22 | 
  23 | if [ -f 'solinit_interp1D.choices' ]
  24 | then
  25 |   ECHOICES=1
  26 | fi
  27 | 
  28 | if [ $ECHOICES -eq 1 ]
  29 | then
  30 |   echo " Choices file found"
  31 | else
  32 |   cp $CHOICESD/solinit_interp1D.choices .
  33 |   echo " -- No solinit_interp1D.choices file found, copying default file."
  34 |   echo "    Fill the choices file and run again solinit_interp1D"
  35 |   DORUN=0
  36 | fi
  37 | 
  38 | if [ $DORUN -eq 1 ]
  39 | then
  40 |   make -f $TOOLDIR/Makefile all
  41 |   $DOMHOME/HOSTS/$DOM_HOSTTYPE/solinit_interp1D_$DOM_VERSION.e_$DOM_HOSTTYPE
  42 | fi