!/bin/bash


readonly VRR="$1/vrr"
echo "VRR is at $VRR"
echo "Command line args $@"

main () {
    # Run of inpmod, stamod, dynmod and outmod
    "$VRR" isdo vert_move || exit 1

    # Extract wave kinematics for 200 - 300 s
    sed -n 2001,3001p vert_move_wavkin.asc >vert_move_wavkin_200_300.asc || exit 2
    rm vert_move_wavkin.asc
}


# The only global command is to start the main function
main

exit 0
