Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JPermutation.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to test JPermutation.
11#
12# ------------------------------------------------------------------------------------------
13
14if [ -z $JPP_DIR ]; then
15 echo "Variable JPP_DIR undefined."
16 exit
17fi
18
19source $JPP_DIR/setenv.sh $JPP_DIR
20
21if do_usage $*; then
22 usage "$script"
23fi
24
25# default input values
26
27BUFFER="1 3 5 7 9 2 4 6"
28N=6
29
30
31$JPP_DIR/examples/JTools/JPermutation \
32 -i $BUFFER \
33 -N $N