#!/bin/sh -f
# 004: followon from 003 run with -M TLSbasic
# setup autoBUSTER 
. $BDG_home/setup.sh
# write results to a directory:
RESULTDIR="ab_runs/"$0"_result"
# 
(time refine                                            \
   -p 1osgBasicNCS_003_autoncs_followon_2009_refine.pdb \
   -m 1osg.mtz                                    	\
   -autoncs                                       	\
   -M TLSbasic                                          \
   -d $RESULTDIR                                  	\
  ) > $0".log"
if [ $? -ne 0 ]
then
  exit 1;
fi
# copy out the pdb and mtz files to this directory.
cp $RESULTDIR"/refine.pdb" $0"_refine.pdb"
cp $RESULTDIR"/refine.mtz" $0"_refine.mtz"
