#!/bin/csh -f
#
# binff3
#    Script for converting forcefield from ascii to binary
#
# Command line input:
#
#    forcefield
#
# Environment: 
#    Will only run on current platform using discover in Cerius2 release area
# 
# Product: discover
#
# Molecular Simulations Inc 1997
#-----------------------------------------------------------------------------
#
# Setup environment variables
#
setenv BIOSYM  /usr/global/msi/cerius2_4.2MS/cdiscover
setenv BIOSYM_LIBRARY  /usr/global/msi/cerius2_4.2MS/cdiscover/res
source /usr/global/msi/cerius2_4.2MS/install/lic_setup
#
# Check argument list
#
if ($#argv < 1) then
    echo "Usage: $0 forcefield"
    exit 1
endif
#
# Run the discover executable and create the binary forcefield
#
echo "readFile forcefield file = $1; writeFile forcefield +binary file = $1" | $BIOSYM/exec/discovery
