Skip to content
Snippets Groups Projects
Scenario.sh 831 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/sh
    
    # This shel script creates a series of PNG images in the IMG directory
    # from the results of a DOUAR run on grace
    # it assumes that the run is in the 3DC/DOUAR_CASCADE directory
    # and the output files are stored in the "DIRECTORY" directory
    # it will look for "LIMIT" out put files, starting at 1
    
    # note that it uses the create_vtk.sh script file stored on grace
    # as well as the Make_png.py python script in the current directory
    
    DIRECTORY=OUT
    LIMIT=852
    arg=501
    step=1
    
    while [ "$arg" -le $LIMIT ]
    do
    echo DOING $arg
    echo $DIRECTORY > create_vtk.in
    echo $arg >> create_vtk.in
    echo "n" >> create_vtk.in
    ./post < create_vtk.in
    python Make_png.py
    mv junk.png IMG/$arg.png
    #mv junkp.png IMGp/$arg.png
    #mv junk1.png IMG1/$arg.png
    #mv junk2.png IMG2/$arg.png
    #mv junk3.png IMG3/$arg.png
    echo $arg DONE
    let "arg+=step"
    done