THIS PROCESS IS ONLY FOR SINGLE POINT RUNS. DO NOT USE IT ON A GEOMETRY OPTIMIZATION OUTPUT!!!! To get electrostatic points from Gaussian94 in a form that RESP understands follow the following simple recipe: Add iop(6,33=2) to your gaussian command line viz. # hf/sto-3g pop=mk iop(6/33=2) This is does NOT appear in the g94 manual, so trust me :-) Run g94 g94 < coords.in > out.file Look in your g94 output for the number of esp points: grep "points will be used for fitting atomic charges" out.file Execute esp.sh (code below) using the g94 output as input. esp.sh out.file Use the resulting file as the "-e" input to resp (you still need to make the "-i" file). Easy,no? Assuming that you will leave the files in your top directory just extract the following 2 files and "chmod +x esp.sh" (otherwise modify the path to readit.f in line 2 of esp.sh). This is so you don't actually need to have a resident copy of Amber4.1 to generate the esp.dat file. file esp.sh--------------------------------------------------- #!/bin/csh -f if ( -e esp.dat ) then echo esp.dat exists already: please rename or remove exit(1) endif f77 ~/readit.f >& /dev/null grep "Atomic Center " $1 > tempa grep "ESP Fit" $1 > tempb grep "Fit " $1 > tempc # # the goto is used since fortran has no standard way # to pass exit codes, and we want to clean up whether # or not the exit code happens to be non-0 # a.out || goto next next: /bin/rm -f tempa tempb tempc a.out readit.o exit(0) file readit.f--------------------------------------------------- program readit C*********************************************************************** C # C Copyright (c) 1986, 1991, 1995 # C Regents of the University of California # C # C All Rights Reserved # C # C Permission to use, copy, modify, and distribute this software and # C its documentation for any purpose and without fee is hereby # C granted, provided that the above copyright notice appear in all # C copies and that both that copyright notice and this permission # C notice appear in supporting documentation, and that the name of # C the University of California not be used in advertising or # C publicity pertaining to distribution of the software without # C specific, written prior permission. # C # C THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL # C WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED # C WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE # C UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR # C CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # C LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, # C NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # C CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # C # C*********************************************************************** C implicit double precision (a-h,o-z) c c routine to output "esp.dat" files of coordinates c and electrostatic potential values for use in c "RESP". Output values are in atomic units (the c default for resp). c c version 1.0 c james caldwell-ucsf February,1996 c open(unit=7,file="tempa",status="old",form="formatted") open(unit=8,file="tempb",status="old",form="formatted") open(unit=9,file="tempc",status="old",form="formatted") open(unit=10,file="esp.dat",status="new",form="formatted") unit=0.529177249d0 write(6,'(t2,''enter natom,nesp: '',$)') read (5,'(2i)')i,j write(6,'(''# atoms: '',i5,'' # esp: ''i5)')i,j write(10,'(2i5)')i,j do jn = 1,i read ( 7,'(32x,3f10.0)')a,b,c write(10,'(16x,3e16.6)')a/unit,b/unit,c/unit enddo do jn = 1,j read ( 8,'(32x3f10.0)')a,b,c read ( 9,'(14x,f10.0)')esp write(10,'(4e16.6)')esp,a/unit,b/unit,c/unit enddo rewind(7) rewind(8) rewind(9) rewind(10) call exit end ----------------------------------------------------------------------