Skip to content
Snippets Groups Projects
Select Git revision
  • 17403d631392db39c018034daff01ab9193a8f95
  • master default protected
  • devel
  • adaptive_step_size
4 results

general_stuff

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    general_stuff 302 B
    # There are some common things we will use in any script we have for plotting.
    
    exe_dir=../bin
    exe=$exe_dir/ackley_nogfx
    plot_dir=plots
    
    bailout () {
        echo BROKEN
        exit 1
    }
    
    
    if !  [ -x $exe ] ; then
        (cd ..; make ) || bailout
    fi
    
    if ! [ -d $plot_dir ] ; then
        mkdir $plot_dir || bailout
    fi