#!/bin/bash # Check the existence of a test version of the mdgx program MDGX="${AMBERHOME}/bin/mdgx" if [ -n "${TESTmdgx}" ] ; then MDGX=${TESTmdgx} echo "MDGX set to ${MDGX}" fi # Write a simple input file cat > mdgx.in << EOF &files -p prmtop -c inpcrd -r 1aho -o 1aho -x 1aho -f 1aho -osf .out -rsf .rst -xsf .trj -fsf .frc &end &cntrl DoSETTLE = 1, DoRATTLE = 1, Vdw14Fac = 2.0, Elec14Fac = 1.2, ElecCut = 10.000, vdw_cutoff = 10.000, dt = 2.0e-3, nstlim = 5000, nfistep = 0, ntpr = 50, ntwr = 5000, ntwf = 0, ntwx = 0, ntt = 1, Temperature = 300.0, SplnSpc = 0.015625, &end EOF # Run the mdgx program ${MDGX} -O -i mdgx.in