#!/bin/csh -f
#
# makeinput - make input files for the driver program.
#
# This allows us to use the variables and looping constructs of the
# shell to create a bunch of test files for the driver. This
# is really a template to be modified to a specific purpose.
# As it stands it generates one line of output that represents the
# default settings for all parameters. 
#
# $Id: makeinput,v 1.3 90/10/29 18:33:22 dfk PreWrite $

source ~/rf/run/test/defaults

###################
# SOME COMMON LOOPS
# foreach Synch ("none 1" "each 10" "total 200" "nbor 10")

# full predictor series
# foreach Predictor ("exact 0" "gaps 0" "rgaps 0" "gw 0")
# foreach Predictor ("exact 0" "obl 0" "ibl 0" "iobl 0" "adapt 5"\
#    "port 5" "iport 5" "ioport 5")

# short predictor series
# foreach Predictor ("exact 0" "gaps 0" "rgaps 0")
# foreach Predictor ("exact 0" "ioport 5")

# full pattern series
# foreach pat (gpr gps gw grnd lpr lps lw seg rnd)
#     set Directory=data/$pat
#     set Pattern=pat/${pat}20

# local pattern series
# foreach pat (lpr lps lw seg rnd)
#     set Directory=data/$pat
#     set Pattern=pat/${pat}20

# global pattern series
# foreach pat (gpr gps gw grnd)
#     set Directory=data/$pat
#     set Pattern=pat/${pat}20

# comp/nocomp
#    this should be run directly within a pattern series loop
# foreach comp ("" "comp")
#    if ($comp != "") then    
#       set Directory=$Directory-comp
#       set Pattern=$Pattern.comp
#    endif

###########################
# Put experiment-specific variable settings here, along with
# any loop starts.

makedirs $testfile
echo > $testfile

source ~/rf/run/test/body  # Make one test file input line

# put loop-ends here.
