CCL Home Page
Up Directory CCL changes
The following changes have to be made to the Public Domain
version of Mopac 7, as available at the Computational Chemistry Archive:
gopher://www.ccl.net:73/11/software/SOURCES/FORTRAN/mopac7_sources
in order to compile it with f2c/gcc combo for MS DOS machine.
In addition to the problems reported by Jiro TOYODA ,
Eberhard Heuser-Hofmann  and
jstewart@fujitsu.com (Dr. James Stewart) (see original messages at
the same URL), several common block and call argument list mismatches, 
variable names misspellings, uninitialized variables etc. were fixed.
Additionally, test data from Mopac6 PD distribution (available at URL
gopher://www.ccl.net:73/11/software/SOURCES/FORTRAN/mopac6_sources)
was added. Although this version seems to reproduce the heats of
formation given in test samples, there is no guarantee it will work
for anything else :-)

Makefile is configured for cross-compiler running on SGI machine, so
some changes will be necessary in order to use it on other platforms.

In order to apply these changes, you will need patch, available from
the usual places (e.g. ftp://prep.ai.mit.edu/pub/gnu).

Serge Pachkovsky, ps@ocisgi7.unizh.ch


diff -cdN ../src.old//1scf.dat ./1scf.dat
*** ../src.old//1scf.dat
--- ./1scf.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,211 ----
+  SYMMETRY 1SCF  GRADIENTS
+  Formaldehyde, for Demonstration Purposes
+                 HEAT OF FORMATION SHOULD BE -32.8819 KCAL
+   O    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2902
+   C    1.2164870  1      0.000000  0      0.000000  0    1    0    0      0.2921
+   H    1.1061273  1    123.510934  1      0.000000  0    2    1    0     -0.0010
+   H    1.1061273  0    123.510934  0   -179.999994  0    2    1    3     -0.0010
+  
+    3  1    4
+    3  2    4
+  
+   1SCF  T=25M GRADIENTS           PULAY PRECISE
+    DOUBLET RHF ETHYL RADICAL
+     CALCULATED HEAT OF FORMATION SHOULD BE = 12.824
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1384
+   C    1.4791477  1      0.000000  0      0.000000  0    1    0    0      0.0558
+   H    1.1093748  1    111.309966  1      0.000000  0    2    1    0     -0.0023
+   H    1.1094442  1    111.719813  1    120.266333  1    2    1    3     -0.0035
+   H    1.1096173  1    110.109742  1   -119.815906  1    2    1    3      0.0005
+   H    1.0819233  1    121.212473  1     38.132703  1    1    2    3      0.0437
+   H    1.0817007  1    121.505329  1   -142.585074  1    1    2    3      0.0443
+  
+  1SCF  PRECISE GRADIENTS     PULAY BIRADICAL SYMMETRY
+     BIRADICAL FORM OF ETHYLENE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 45.146
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1003
+   C    1.4411597  1      0.000000  0      0.000000  0    1    0    0     -0.1003
+   H    1.0815188  1    120.939334  1      0.000000  0    2    1    0      0.0501
+   H    1.0815188  0    120.939334  0    180.000000  0    2    1    3      0.0501
+   H    1.0815188  0    120.939334  0     90.000000  0    1    2    3      0.0501
+   H    1.0815188  0    120.939334  0    -90.000000  0    1    2    3      0.0501
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+  MECI DEBUG   1SCF    PULAY EXCITED SYMMETRY
+    EXCITED SINGLET STATE OF D2D ETHYLENE
+    CALCULATED HEAT OF FORMATION SHOULD BE = 106.651
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0931
+   C    1.3297665  1      0.000000  0      0.000000  0    1    0    0     -0.0920
+   H    1.1003051  1    125.388161  1      0.000000  0    2    1    0      0.0462
+   H    1.1003051  0    125.388161  0    180.000000  0    2    1    3      0.0462
+   H    1.1003051  0    125.388161  0     90.000000  0    1    2    3      0.0463
+   H    1.1003051  0    125.388161  0    -90.000000  0    1    2    3      0.0463
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+  GRADIENTS  PULAY TRIPLET SYMMETRY   NOANCI SCFCRT=1.D-9 1SCF
+     RHF TRIPLET FORM OF D2D ETHYLENE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 45.136
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1003
+   C    1.4414372  1      0.000000  0      0.000000  0    1    0    0     -0.1003
+   H    1.0819773  1    120.961344  1      0.000000  0    2    1    0      0.0501
+   H    1.0819773  0    120.961344  0    180.000000  0    2    1    3      0.0501
+   H    1.0819773  0    120.961344  0     90.000000  0    1    2    3      0.0501
+   H    1.0819773  0    120.961344  0    -90.000000  0    1    2    3      0.0501
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+   1SCF  GRADIENTS      PULAY UHF SYMMETRY
+    UHF SINGLET FORM OF D2D ETHYLENE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 39.724
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0984
+   C    1.4336926  1      0.000000  0      0.000000  0    1    0    0     -0.0984
+   H    1.0845074  1    121.394373  1      0.000000  0    2    1    0      0.0492
+   H    1.0845074  0    121.394373  0    180.000000  0    2    1    3      0.0492
+   H    1.0845074  0    121.394373  0     90.000000  0    1    2    3      0.0492
+   H    1.0845074  0    121.394373  0    -90.000000  0    1    2    3      0.0492
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+  1SCF  GRADIENTS     UHF HYPERFINE
+   UHF DOUBLET CALCULATION OF ETHYL RADICAL
+    CALCULATED HEAT OF FORMATION SHOULD BE =  10.546
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1337
+   C    1.4757902  1      0.000000  0      0.000000  0    1    0    0      0.0516
+   H    1.1108691  1    111.273246  1      0.000000  0    2    1    0     -0.0017
+   H    1.1095905  1    111.932278  1    120.651973  1    2    1    3     -0.0035
+   H    1.1123214  1    110.544048  1   -119.359340  1    2    1    3     -0.0001
+   H    1.0826801  1    121.170463  1     44.960564  1    1    2    3      0.0432
+   H    1.0822837  1    121.670325  1   -135.692653  1    1    2    3      0.0442
+  
+  1SCF  GRADIENTS   TRIPLET     PULAY UHF SYMMETRY
+   UHF TRIPLET FORM OF D2D ETHYLENE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 41.668
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1000
+   C    1.4365573  1      0.000000  0      0.000000  0    1    0    0     -0.1000
+   H    1.0835106  1    121.240393  1      0.000000  0    2    1    0      0.0500
+   H    1.0835106  0    121.240393  0    180.000000  0    2    1    3      0.0500
+   H    1.0835106  0    121.240393  0     90.000000  0    1    2    3      0.0500
+   H    1.0835106  0    121.240393  0    -90.000000  0    1    2    3      0.0500
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+     GRADIENTS    MINDO3 PULAY      SYMMETRY 1SCF  PRECISE
+  MINDO/3 CALCULATION OF FORMALDEHYDE
+    CALCULATED HEAT OF FORMATION SHOULD BE = -25.561
+  XX    0.0000000  0      0.000000  0      0.000000  0    0    0    0
+   H    1.0000000  0      0.000000  0      0.000000  0    1    0    0     -0.1091
+   C    1.1230407  1    180.000000  0      0.000000  0    2    1    0      0.6433
+   H    1.1230407  0    106.817852  1    180.000000  0    3    2    1     -0.1091
+   O    1.1813937  1    126.591058  1    180.000000  0    3    2    4     -0.4250
+  XX    0.9800000  1    118.854084  1    180.000000  0    3    2    4
+  
+    3  1    4
+  
+  GRADIENTS    MINDO3         PULAY PRECISE 1SCF
+    MINDO/3 RHF CALCULATION OF ETHYL RADICAL
+     CALCULATED HEAT OF FORMATION SHOULD BE = 21.786
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0871
+   C    1.4429517  1      0.000000  0      0.000000  0    1    0    0      0.1261
+   H    1.1104804  1    113.153612  1      0.000000  0    2    1    0     -0.0264
+   H    1.1109080  0    113.519501  0    120.856920  1    2    1    3     -0.0270
+   H    1.1123210  0    111.597420  0   -119.423264  0    2    1    3     -0.0264
+   H    1.0964460  0    122.469931  0     41.801964  0    1    2    3      0.0204
+   H    1.0964210  0    122.612868  0   -156.436885  0    1    2    3      0.0204
+  
+   MMOK 1SCF  GRADIENTS
+   Formamide
+              HEAT OF FORMATION SHOULD BE    -39.381 KCAL
+   H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1889
+   N    0.9944977  1      0.000000  0      0.000000  0    1    0    0     -0.4301
+   H    0.9922729  1    115.682068  1      0.000000  0    2    1    0      0.1797
+   C    1.3889243  1    123.068510  1   -179.949693  1    2    1    3      0.3754
+   O    1.2269743  1    120.917841  1     -0.024668  1    4    2    1     -0.3704
+   H    1.1081569  1    114.505142  1    179.980350  1    4    2    1      0.0565
+  
+   NOMM 1SCF  GRADIENTS PM3
+   Formamide
+              HEAT OF FORMATION SHOULD BE    -41.823857 KCAL
+   H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0600
+   N    0.9963059  1      0.000000  0      0.000000  0    1    0    0     -0.0312
+   H    0.9941621  1    113.012144  1      0.000000  0    2    1    0      0.0462
+   C    1.4128878  1    116.558032  1    135.656202  1    2    1    3      0.2141
+   O    1.2165264  1    118.501522  1     16.961282  1    4    2    1     -0.3693
+   H    1.1020440  1    117.785337  1   -167.664143  1    4    2    1      0.0803
+  
+  1SCF  GRADIENTS  OPEN(1,1) SYMMETRY ESR DEPVAR=1.0
+  Methyl radical
+                HEAT OF FORMATION SHOULD BE = 25.796 KCAL
+   C    0.0000000  0     28.000000  0      0.000000  0    0    0    0     -0.0901
+  XX    1.0778455  1      0.000000  0      0.000000  0    1    0    0
+  XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+   H    1.0778455  0     90.003666  1    180.000000  0    1    2    3      0.0300
+   H    1.0778455  0     90.003666  0     60.000000  0    1    2    3      0.0300
+   H    1.0778455  0     90.003666  0    -60.000000  0    1    2    3      0.0300
+  
+    2  1    4   5
+    2 18    6
+    4  2    5   6
+  
+  SYMMETRY   C.I.=(4,3) MICROS=16 1SCF  GRADIENTS
+               HEAT OF FORMATION SHOULD BE    -6.830
+  
+   N    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2288
+  XX    1.0076190  1      0.000000  0      0.000000  0    1    0    0
+  XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+   H    1.0076190  0    113.280330  1    180.000000  0    1    2    3      0.0763
+   H    1.0076190  0    113.280330  0     60.000000  0    1    2    3      0.0763
+   H    1.0076190  0    113.280330  0    -60.000000  0    1    2    3      0.0763
+  
+    2  1    4   5   6
+    4  2    5   6
+  
+    MICROS
+  11101110
+  11101101
+  11101011
+  11100111
+  11011110
+  11011101
+  11011011
+  11010111
+  10111110
+  10111101
+  10111011
+  10110111
+  01111110
+  01111101
+  01111011
+  01110111
+  OPEN(2,2) MECI PRECISE GRADIENTS     ROOT=2 SINGLET SYMMETRY T=25M 1SCF
+     BIRADICAL FORM OF ETHYLENE
+               HEAT OF FORMATION SHOULD BE = 106.651 KCAL
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0925
+   C    1.3297679  1      0.000000  0      0.000000  0    1    0    0     -0.0925
+   H    1.1003061  1    125.388703  1      0.000000  0    2    1    0      0.0463
+   H    1.1003061  0    125.388703  0   -179.998172  1    2    1    3      0.0463
+   H    1.1003061  0    125.388703  0     89.999422  0    1    2    3      0.0463
+   H    1.1003061  0    125.388703  0    -90.000682  0    1    2    3      0.0463
+  
+    3  1    4   5   6
+    3  2    4   5   6
+  
+  SCFCRT=1.D-9  PRECISE GRADIENTS + OPEN(2,2) TRIPLET
+  SYMMETRY T=25M DEBUG  1SCF  LARGE DEBUG MECI
+     BIRADICAL FORM OF ETHYLENE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 45.1355
+   C    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1003
+   C    1.4411244  1      0.000000  0      0.000000  0    1    0    0     -0.1003
+   H    1.0814687  1    120.931175  1      0.000000  0    2    1    0      0.0502
+   H    1.0814687  0    120.931175  0    180.000000  0    2    1    3      0.0502
+   H    1.0814687  0    120.931175  0     90.000000  0    1    2    3      0.0502
+   H    1.0814687  0    120.931175  0    -90.000000  0    1    2    3      0.0502
+  
+    3  1    4   5   6
+    3  2    4   5   6
diff -cdN ../src.old//Makefile ./Makefile
*** ../src.old//Makefile	Tue Jan 26 01:11:48 1993
--- ./Makefile	Mon Jan 30 17:11:34 1995
***************
*** 7,29 ****
  #	make		Makes the MOPAC file
  #	make clean	Clean up disk to minimum config
  #
! FFLAGS	        = -O  -c  -static
  HDRS		= SIZES
! SRCS:sh		= ls *.f 
! OBJS		= $(SRCS:.f=.o)
! SIZEDEPSRC:sh	= grep -l -i '      INCLUDE ' *.f; true
! SIZEDEPEND	= $(SIZEDEPSRC:.f=.o)
  
! mopac.exe:     	SIZES $(OBJS) 
! 		@echo -n "Loading mopac.exe ... "
! 		f77 -O $(OBJS) -o mopac.exe
  		@echo "done"
  
  clean:
! 	 	rm -f $(OBJS)
  
  
! $(SIZEDEPEND):	$$< $(HDRS) 
! 		$(FC) $(FFLAGS) $<
  
  ###
--- 7,89 ----
  #	make		Makes the MOPAC file
  #	make clean	Clean up disk to minimum config
  #
! F77             = ./f77pc
! FFLAGS	        = -A -b i386-any-go32 -O2 -finline-functions -ffast-math -m486 
! LD              = gcc -b i386-any-go32 -Wl,-Map,mopac.map
! LIBS            = -lf2c -lm
  HDRS		= SIZES
! RM              = rm
! CC		= gcc
  
! FLARGE		= greenf.f esp.f
! DUMMIES		= fdummy.f
! FEXTRA		= $(FLARGE)
! FSRCS		= \
! aababc.f addfck.f addhcr.f addnuc.f analyt.f anavib.f axis.f block.f \
! bonds.f brlzon.f btoc.f calpar.f capcor.f cdiag.f chrge.f cnvg.f \
! compfg.f consts.f cqden.f datin.f dcart.f delmol.f delri.f denrot.f \
! densit.f depvar.f deri0.f deri1.f deri2.f deri21.f deri22.f deri23.f \
! deritr.f deriv.f dernvo.f ders.f dfock2.f dfpsav.f dgemm.f dgemv.f \
! dger.f dgetf2.f dgetrf.f dgetri.f diag.f diat.f diat2.f diegrd.f \
! dielen.f diis.f dijkl1.f dijkl2.f dipind.f dipole.f dlaswp.f dofs.f \
! dot.f drc.f drcout.f dtrmm.f dtrmv.f dtrsm.f dtrti2.f dtrtri.f dvfill.f \
! ef.f enpart.f exchng.f ffhpol.f flepo.f fmat.f fock1.f fock2.f \
! force.f formxy.f forsav.f frame.f freqcy.f geout.f geoutg.f getgeg.f \
! getgeo.f getsym.f gettxt.f gmetry.f gover.f grid.f h1elec.f \
! haddon.f hcore.f helect.f hqrii.f ijkl.f ilaenv.f initsv.f interp.f \
! iter.f jcarin.f linmin.f local.f locmin.f lsame.f makpol.f mamult.f \
! matou1.f matout.f matpak.f meci.f mecid.f mecih.f mecip.f moldat.f \
! molval.f mopac.f mullik.f mult.f nllsq.f nuchar.f parsav.f partxy.f \
! pathk.f paths.f perm.f polar.f powsav.f powsq.f prtdrc.f quadr.f \
! react1.f reada.f readmo.f refer.f repp.f rotat.f rotate.f rsp.f \
! search.f second.f setupg.f solrot.f swap.f sympro.f symtry.f symtrz.f \
! thermo.f timer.f timout.f update.f vecprt.f writmo.f wrtkey.f \
! wrttxt.f xerbla.f xyzint.f $(FEXTRA)
! 
! CSRCS		= f2c_mopac.c
! 
! OBJS		= $(FSRCS:.f=.o) $(CSRCS:.c=.o)
! MOPAC		= mopac
! MOPACSHELL	= mopac.csh
! BINDIR		= /usr/local/bin
! OWNER		= root.bin
! 
! $(MOPAC):     	f77pc SIZES $(OBJS) 
! 		@echo -n "Loading $@ ... "
! 		$(LD) -o $@ $(OBJS) $(LIBS)
  		@echo "done"
  
+ .SUFFIXES: .c .f
+ 
+ f77pc:		f77pc.c
+ 	$(CC) -o f77pc $<
+ 
+ $(FSRCS:.f=.o):	$($@:.o=.f)
+ 	$(F77) -c $(FFLAGS) $(@:.o=.f)
+ 
+ $(CSRCS:.c=.o): $($@:.o=.c)
+ 	$(F77) -c $(FFLAGS) $(@:.o=.c)
+ 
  clean:
! 	 	$(RM) $(OBJS) $(FSRCS:.f=.c) $(DUMMIES:.f=.c) $(FLARGE:.f=.c) $(DUMMIES:.f=.o) $(FLARGE:.f=.o)
  
+ cleandepend:
+ 		$(RM) $(SIZEDEPEND) *.trace core
  
! cleanall:	clean
! 		$(RM) $(MOPAC)
! 
! deinstall:
! 		$(RM) $(BINDIR)/$(MOPAC) $(BINDIR)/$(MOPACSHELL)
! 
! install:	$(MOPAC) $(MOPACSHELL)
! 		strip $(MOPAC)
! 		chmod 755 $(MOPAC) $(MOPACSHELL)
! 		chown $(OWNER) $(MOPAC) $(MOPACSHELL)
! 		/bin/cp -p $(MOPAC) $(BINDIR)/$(MOPAC)
! 		/bin/cp -p $(MOPACSHELL) $(BINDIR)/$(MOPACSHELL)
! 
! ftnchek:
! 		ftnchek -array=2 -volatile -wordsize=4 -common=2 -pure=no -truncation=no -verbose=no -pretty=no -calltree $(SRCS)
  
  ###
diff -cdN ../src.old//SIZES ./SIZES
*** ../src.old//SIZES	Wed Jun 16 05:13:40 1993
--- ./SIZES	Mon Jan 30 16:33:52 1995
***************
*** 10,18 ****
  *     ISYBYL = 1 IF MOPAC IS TO BE USED IN THE SYBYL PACKAGE, =0 OTHERWISE
  *     SEE ALSO NMECI, NPULAY AND MESP AT THE END OF THIS FILE
  *                                                                       
!       PARAMETER (MAXHEV=30, MAXLIT=30)
        PARAMETER (MAXTIM=3600, MAXDMP=3600)
!       PARAMETER (ISYBYL=1)
  *                                                                       
  ************************************************************************
  *                                                                       
--- 10,18 ----
  *     ISYBYL = 1 IF MOPAC IS TO BE USED IN THE SYBYL PACKAGE, =0 OTHERWISE
  *     SEE ALSO NMECI, NPULAY AND MESP AT THE END OF THIS FILE
  *                                                                       
!       PARAMETER (MAXHEV=60, MAXLIT=60)
        PARAMETER (MAXTIM=3600, MAXDMP=3600)
!       PARAMETER (ISYBYL=0)
  *                                                                       
  ************************************************************************
  *                                                                       
***************
*** 43,53 ****
        PARAMETER (MPACK=(MAXORB*(MAXORB+1))/2)
        PARAMETER (MAXPR=6*MAXORB)
        PARAMETER (MAXALL=4*MAXHEV+3*MAXLIT)
!        PARAMETER (NMECI=11,  NPULAY=MPACK, MMCI=60)
        PARAMETER (MESP=50000)
        PARAMETER (LENABC=400)
        PARAMETER (LENAB2=LENABC*(LENABC+5))
        PARAMETER (NPPA = 1082, MAXNSS = 500)
        PARAMETER (MAXDEN=10*MAXHEV+MAXLIT)
  ************************************************************************
  *DECK MOPAC 
--- 43,55 ----
        PARAMETER (MPACK=(MAXORB*(MAXORB+1))/2)
        PARAMETER (MAXPR=6*MAXORB)
        PARAMETER (MAXALL=4*MAXHEV+3*MAXLIT)
!       PARAMETER (NMECI=8, NPULAY=MPACK, MMCI=60)
        PARAMETER (MESP=50000)
        PARAMETER (LENABC=400)
        PARAMETER (LENAB2=LENABC*(LENABC+5))
        PARAMETER (NPPA = 1082, MAXNSS = 500)
        PARAMETER (MAXDEN=10*MAXHEV+MAXLIT)
+ *
+       PARAMETER (IGREEN=600000)
  ************************************************************************
  *DECK MOPAC 
diff -cdN ../src.old//SIZES.BIG ./SIZES.BIG
*** ../src.old//SIZES.BIG
--- ./SIZES.BIG	Mon Jan 30 08:55:30 1995
***************
*** 0 ****
--- 1,55 ----
+ *COMDECK SIZES                                                          
+ ************************************************************************
+ *   THIS FILE CONTAINS ALL THE ARRAY SIZES FOR USE IN MOPAC.            
+ *                                                                       
+ *     THERE ARE ONLY 5 PARAMETERS THAT THE PROGRAMMER NEED SET:          
+ *     MAXHEV = MAXIMUM NUMBER OF HEAVY ATOMS (HEAVY: NON-HYDROGEN ATOMS)
+ *     MAXLIT = MAXIMUM NUMBER OF HYDROGEN ATOMS.                        
+ *     MAXTIM = DEFAULT TIME FOR A JOB. (SECONDS)                        
+ *     MAXDMP = DEFAULT TIME FOR AUTOMATIC RESTART FILE GENERATION (SECS)
+ *     ISYBYL = 1 IF MOPAC IS TO BE USED IN THE SYBYL PACKAGE, =0 OTHERWISE
+ *     SEE ALSO NMECI, NPULAY AND MESP AT THE END OF THIS FILE
+ *                                                                       
+       PARAMETER (MAXHEV=60, MAXLIT=60)
+       PARAMETER (MAXTIM=3600, MAXDMP=3600)
+       PARAMETER (ISYBYL=0)
+ *                                                                       
+ ************************************************************************
+ *                                                                       
+ *   THE FOLLOWING CODE DOES NOT NEED TO BE ALTERED BY THE PROGRAMMER    
+ *                                                                       
+ ************************************************************************
+ *                                                                       
+ *    ALL OTHER PARAMETERS ARE DERIVED FUNCTIONS OF THESE TWO PARAMETERS 
+ *                                                                       
+ *      NAME                   DEFINITION                                
+ *     NUMATM         MAXIMUM NUMBER OF ATOMS ALLOWED.                   
+ *     MAXORB         MAXIMUM NUMBER OF ORBITALS ALLOWED.                
+ *     MAXPAR         MAXIMUM NUMBER OF PARAMETERS FOR OPTIMISATION.     
+ *     N2ELEC         MAXIMUM NUMBER OF TWO ELECTRON INTEGRALS ALLOWED.  
+ *     MPACK          AREA OF LOWER HALF TRIANGLE OF DENSITY MATRIX.     
+ *     MORB2          SQUARE OF THE MAXIMUM NUMBER OF ORBITALS ALLOWED.  
+ *     MAXHES         AREA OF HESSIAN MATRIX                             
+ *     MAXALL         LARGER THAN MAXORB OR MAXPAR.
+ ************************************************************************
+       PARAMETER (VERSON=7.00D0)
+       PARAMETER (NUMATM=MAXHEV+MAXLIT)
+       PARAMETER (MAXORB=4*MAXHEV+MAXLIT)
+       PARAMETER (MAXPAR=3*NUMATM)
+       PARAMETER (MAXBIG=MAXORB*MAXORB*2)
+       PARAMETER (N2ELEC=(50*MAXHEV*(MAXHEV-1)+10*MAXHEV*MAXLIT
+      +                     +(MAXLIT*(MAXLIT-1))/2))
+       PARAMETER (MAXHES=(MAXPAR*(MAXPAR+1))/2,MORB2=MAXORB**2)
+       PARAMETER (MPACK=(MAXORB*(MAXORB+1))/2)
+       PARAMETER (MAXPR=6*MAXORB)
+       PARAMETER (MAXALL=4*MAXHEV+3*MAXLIT)
+       PARAMETER (NMECI=8, NPULAY=MPACK, MMCI=60)
+       PARAMETER (MESP=50000)
+       PARAMETER (LENABC=400)
+       PARAMETER (LENAB2=LENABC*(LENABC+5))
+       PARAMETER (NPPA = 1082, MAXNSS = 500)
+       PARAMETER (MAXDEN=10*MAXHEV+MAXLIT)
+ *
+       PARAMETER (IGREEN=600000)
+ ************************************************************************
+ *DECK MOPAC 
diff -cdN ../src.old//SIZES.SML ./SIZES.SML
*** ../src.old//SIZES.SML
--- ./SIZES.SML	Mon Jan 30 15:47:45 1995
***************
*** 0 ****
--- 1,59 ----
+ *COMDECK SIZES                                                          
+ ************************************************************************
+ *   THIS FILE CONTAINS ALL THE ARRAY SIZES FOR USE IN MOPAC.            
+ *                                                                       
+ *     THERE ARE ONLY 5 PARAMETERS THAT THE PROGRAMMER NEED SET:          
+ *     MAXHEV = MAXIMUM NUMBER OF HEAVY ATOMS (HEAVY: NON-HYDROGEN ATOMS)
+ *     MAXLIT = MAXIMUM NUMBER OF HYDROGEN ATOMS.                        
+ *     MAXTIM = DEFAULT TIME FOR A JOB. (SECONDS)                        
+ *     MAXDMP = DEFAULT TIME FOR AUTOMATIC RESTART FILE GENERATION (SECS)
+ *     ISYBYL = 1 IF MOPAC IS TO BE USED IN THE SYBYL PACKAGE, =0 OTHERWISE
+ *     SEE ALSO NMECI, NPULAY AND MESP AT THE END OF THIS FILE
+ *                                                                       
+ *     For a small version, do not forget to use FDUMMY sources instead
+ *     of FLARGE ones in Makefile!
+ *
+       PARAMETER (MAXHEV=15, MAXLIT=24)
+       PARAMETER (MAXTIM=3600, MAXDMP=3600)
+       PARAMETER (ISYBYL=0)
+ *                                                                       
+ ************************************************************************
+ *                                                                       
+ *   THE FOLLOWING CODE DOES NOT NEED TO BE ALTERED BY THE PROGRAMMER    
+ *                                                                       
+ ************************************************************************
+ *                                                                       
+ *    ALL OTHER PARAMETERS ARE DERIVED FUNCTIONS OF THESE TWO PARAMETERS 
+ *                                                                       
+ *      NAME                   DEFINITION                                
+ *     NUMATM         MAXIMUM NUMBER OF ATOMS ALLOWED.                   
+ *     MAXORB         MAXIMUM NUMBER OF ORBITALS ALLOWED.                
+ *     MAXPAR         MAXIMUM NUMBER OF PARAMETERS FOR OPTIMISATION.     
+ *     N2ELEC         MAXIMUM NUMBER OF TWO ELECTRON INTEGRALS ALLOWED.  
+ *     MPACK          AREA OF LOWER HALF TRIANGLE OF DENSITY MATRIX.     
+ *     MORB2          SQUARE OF THE MAXIMUM NUMBER OF ORBITALS ALLOWED.  
+ *     MAXHES         AREA OF HESSIAN MATRIX                             
+ *     MAXALL         LARGER THAN MAXORB OR MAXPAR.
+ ************************************************************************
+       PARAMETER (VERSON=7.00D0)
+       PARAMETER (NUMATM=MAXHEV+MAXLIT)
+       PARAMETER (MAXORB=4*MAXHEV+MAXLIT)
+       PARAMETER (MAXPAR=3*NUMATM)
+       PARAMETER (MAXBIG=MAXORB*MAXORB*2)
+       PARAMETER (N2ELEC=(50*MAXHEV*(MAXHEV-1)+10*MAXHEV*MAXLIT
+      +                     +(MAXLIT*(MAXLIT-1))/2))
+       PARAMETER (MAXHES=(MAXPAR*(MAXPAR+1))/2,MORB2=MAXORB**2)
+       PARAMETER (MPACK=(MAXORB*(MAXORB+1))/2)
+       PARAMETER (MAXPR=6*MAXORB)
+       PARAMETER (MAXALL=4*MAXHEV+3*MAXLIT)
+       PARAMETER (NMECI=8, NPULAY=MPACK, MMCI=60)
+       PARAMETER (MESP=50000)
+       PARAMETER (LENABC=400)
+       PARAMETER (LENAB2=LENABC*(LENABC+5))
+       PARAMETER (NPPA = 1082, MAXNSS = 500)
+       PARAMETER (MAXDEN=10*MAXHEV+MAXLIT)
+ *    For a small version, disable green functions support, since they need
+ *    a horrible amount of memory
+       PARAMETER (IGREEN=0)
+ ************************************************************************
+ *DECK MOPAC 
diff -cdN ../src.old//addfck.f ./addfck.f
*** ../src.old//addfck.f	Tue Apr 20 03:38:08 1993
--- ./addfck.f	Thu Jan 26 10:30:30 1995
***************
*** 6,12 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
  C      COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
  C     1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 6,12 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NNX(2,NUMATM)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
  C      COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
  C     1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
diff -cdN ../src.old//addhcr.f ./addhcr.f
*** ../src.old//addhcr.f	Tue Apr 20 03:38:08 1993
--- ./addhcr.f	Wed Jan 25 15:46:37 1995
***************
*** 5,11 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 5,11 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NN(2,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
diff -cdN ../src.old//addnuc.f ./addnuc.f
*** ../src.old//addnuc.f	Tue Apr 20 03:38:08 1993
--- ./addnuc.f	Wed Jan 25 15:46:19 1995
***************
*** 5,11 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 5,11 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NN(2,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
diff -cdN ../src.old//anavib.f ./anavib.f
*** ../src.old//anavib.f	Tue Apr 20 03:38:08 1993
--- ./anavib.f	Tue Jan 17 14:53:06 1995
***************
*** 57,63 ****
              I1=-2
              DO 70 I=1,J-1
                 I1=I1+3
!                VDW=(VANRAD(NAT(I))+VANRAD(NAT(J)))*1.5
                 L=L+1
                 F(L)=0.D0
                 IF(   RIJ(L)  .LT.  VDW) THEN
--- 57,63 ----
              I1=-2
              DO 70 I=1,J-1
                 I1=I1+3
!                VDW=(VANRAD(NAT(I))+VANRAD(NAT(J)))*1.5D0
                 L=L+1
                 F(L)=0.D0
                 IF(   RIJ(L)  .LT.  VDW) THEN
diff -cdN ../src.old//bonds.f ./bonds.f
*** ../src.old//bonds.f	Tue Apr 20 03:38:08 1993
--- ./bonds.f	Wed Jan 25 17:15:58 1995
***************
*** 26,34 ****
        DIMENSION V(NUMATM),FV(NUMATM),SQ(NUMATM),AQ(NUMATM),TQ(NUMATM),
       1PM(NUMATM),SP(NUMATM),SD(NUMATM),AUX(NUMATM,NUMATM),PSPIN(MPACK)
       2,SPSA(NUMATM),SPSQ(NUMATM)
!       DIMENSION DENW(MAXORB,MAXORB)
        LOGICAL CI,NCI,KCI
!       CHARACTER*80 KEYWRD
  C
        CI=(INDEX(KEYWRD,'C.I.')+INDEX(KEYWRD,'MECI').NE.0)
        KCI=(INDEX(KEYWRD,'MICROS').EQ.0)
--- 26,34 ----
        DIMENSION V(NUMATM),FV(NUMATM),SQ(NUMATM),AQ(NUMATM),TQ(NUMATM),
       1PM(NUMATM),SP(NUMATM),SD(NUMATM),AUX(NUMATM,NUMATM),PSPIN(MPACK)
       2,SPSA(NUMATM),SPSQ(NUMATM)
! C     DIMENSION DENW(MAXORB,MAXORB)
        LOGICAL CI,NCI,KCI
!       CHARACTER*241 KEYWRD
  C
        CI=(INDEX(KEYWRD,'C.I.')+INDEX(KEYWRD,'MECI').NE.0)
        KCI=(INDEX(KEYWRD,'MICROS').EQ.0)
***************
*** 59,71 ****
             K=MU+NORBS*(M-1)
     27      SUM=SUM+C(L)*CBETA(K)
     23   ZKAPPA=ZKAPPA+SUM**2
!         ZKAPPA=1.D0/(ZKAPPA/DFLOAT(NALPHA+NBETA)+0.5D0)
          ELSE
           IF(.NOT.CI.AND.NOPN.EQ.0.AND.NCI.AND.KCI) THEN
!          ZKAPPA=1.0
          ELSE
  C****** ROHF CASE
!         ZKAPPA=1.D0/(1.D0-(DFLOAT(NOPN)/DFLOAT(NELECS))/2.D0)
          WRITE(6,'(10X,''ROHF ZKAPPA='',F10.5,2I5)') ZKAPPA,nopen,nclose
          ENDIF
          ENDIF
--- 59,71 ----
             K=MU+NORBS*(M-1)
     27      SUM=SUM+C(L)*CBETA(K)
     23   ZKAPPA=ZKAPPA+SUM**2
!         ZKAPPA=1.D0/(ZKAPPA/DBLE(NALPHA+NBETA)+0.5D0)
          ELSE
           IF(.NOT.CI.AND.NOPN.EQ.0.AND.NCI.AND.KCI) THEN
!          ZKAPPA=1.0D0
          ELSE
  C****** ROHF CASE
!         ZKAPPA=1.D0/(1.D0-(DBLE(NOPN)/DBLE(NELECS))/2.D0)
          WRITE(6,'(10X,''ROHF ZKAPPA='',F10.5,2I5)') ZKAPPA,nopen,nclose
          ENDIF
          ENDIF
***************
*** 78,84 ****
              IJ=IJ+1
              K=NFIRST(J)
              KK=NLAST(J)
!             X=0.0
              DO 30 IL=L,LL
                 DO 30 IH=K,KK
     30       X=X+B(IL,IH)*B(IL,IH)
--- 78,84 ----
              IJ=IJ+1
              K=NFIRST(J)
              KK=NLAST(J)
!             X=0.0D0
              DO 30 IL=L,LL
                 DO 30 IH=K,KK
     30       X=X+B(IL,IH)*B(IL,IH)
diff -cdN ../src.old//btoc.f ./btoc.f
*** ../src.old//btoc.f	Tue Apr 20 03:38:08 1993
--- ./btoc.f	Wed Jan 25 15:46:06 1995
***************
*** 6,12 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 6,12 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NN(2,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
***************
*** 18,30 ****
     10 COSURF(IX,I)=COSURF(IX,I)*RI+COORD(IX,J)
  C FILLING B-MATRIX
        I0=NPS2-NDEN
!       IDEN=0.
        DO 50 I=1,NUMAT
           IA=NFIRST(I)
           IDEL=NLAST(I)-IA
           NATI=NAT(I)
!          DDI=DD(NATI)*2*.529177
!          QQI2=(.529177*QQ(NATI))**2
           DO 20 IX=1,3
              XX(IX)=COORD(IX,I)
     20    CONTINUE
--- 18,30 ----
     10 COSURF(IX,I)=COSURF(IX,I)*RI+COORD(IX,J)
  C FILLING B-MATRIX
        I0=NPS2-NDEN
!       IDEN=0
        DO 50 I=1,NUMAT
           IA=NFIRST(I)
           IDEL=NLAST(I)-IA
           NATI=NAT(I)
!          DDI=DD(NATI)*2*.529177D0
!          QQI2=(.529177D0*QQ(NATI))**2
           DO 20 IX=1,3
              XX(IX)=COORD(IX,I)
     20    CONTINUE
***************
*** 53,59 ****
     50 IDEN=IDEN+1+IDEL**2
        I1=NPS2+NDEN*NPS
  C  FILLING C-MATRIX
!       FACT=-.5*2*13.6058*.5292*FEPSI
        DO 110 I=1,NDEN
           DO 80 K=1,NPS
              BHK=0.D0
--- 53,59 ----
     50 IDEN=IDEN+1+IDEL**2
        I1=NPS2+NDEN*NPS
  C  FILLING C-MATRIX
!       FACT=-.5D0*2*13.6058D0*.5292D0*FEPSI
        DO 110 I=1,NDEN
           DO 80 K=1,NPS
              BHK=0.D0
***************
*** 72,78 ****
              ABCMAT(I1)=FACT*CIJ
    100    CONTINUE
    110 CONTINUE
!       I1=NSP2+NDEN*NSP
        DO 120 I=1,NDEN
    120 I1=I1+I
        DO 130 I=1,NPS
--- 72,78 ----
              ABCMAT(I1)=FACT*CIJ
    100    CONTINUE
    110 CONTINUE
!       I1=NPS2+NDEN*NPS
        DO 120 I=1,NDEN
    120 I1=I1+I
        DO 130 I=1,NPS
diff -cdN ../src.old//calpar.f ./calpar.f
*** ../src.old//calpar.f	Tue Apr 20 03:38:08 1993
--- ./calpar.f	Tue Jan 17 12:13:10 1995
***************
*** 126,160 ****
           QQM(I)=QQ(I)
  C     CALCULATE ADDITIVE TERMS, IN ATOMIC UNITS.
           JMAX=5
!          GDD1= (P2*HSP(I)/(27.21* 4.*DD(I)**2))**(1./3.)
!          GQQ= (P4*HPP/(27.21*48.*QQ(I)**4))**0.2
           D1=GDD1
!          D2=GDD1+0.04
           Q1=GQQ
!          Q2=GQQ+0.04
           DO 10 J=1,JMAX
              DF=D2-D1
!             HSP1= 2.*D1 - 2./SQRT(4.*DD(I)**2+1./D1**2)
!             HSP2= 2.*D2 - 2./SQRT(4.*DD(I)**2+1./D2**2)
              HSP1= HSP1/P2
              HSP2= HSP2/P2
!             D3= D1 + DF*(HSP(I)/27.21-HSP1)/(HSP2-HSP1)
              D1= D2
              D2= D3
     10    CONTINUE
           DO 20 J=1,JMAX
              QF=Q2-Q1
!             HPP1= 4.*Q1 - 8./SQRT(4.*QQ(I)**2+1./Q1**2)
!      1            + 4./SQRT(8.*QQ(I)**2+1./Q1**2)
!             HPP2= 4.*Q2 - 8./SQRT(4.*QQ(I)**2+1./Q2**2)
!      1            + 4./SQRT(8.*QQ(I)**2+1./Q2**2)
              HPP1= HPP1/P4
              HPP2= HPP2/P4
!             Q3= Q1 + QF*(HPP/27.21-HPP1)/(HPP2-HPP1)
              Q1= Q2
              Q2= Q3
     20    CONTINUE
!          AM(I)= GSS(I)/27.21
           AD(I)= D2
           AQ(I)= Q2
           AMM(I)=AM(I)
--- 126,160 ----
           QQM(I)=QQ(I)
  C     CALCULATE ADDITIVE TERMS, IN ATOMIC UNITS.
           JMAX=5
!          GDD1= (P2*HSP(I)/(27.21D0* 4.D0*DD(I)**2))**(1.D0/3.D0)
!          GQQ= (P4*HPP/(27.21D0*48.D0*QQ(I)**4))**0.2D0
           D1=GDD1
!          D2=GDD1+0.04D0
           Q1=GQQ
!          Q2=GQQ+0.04D0
           DO 10 J=1,JMAX
              DF=D2-D1
!             HSP1= 2.D0*D1 - 2.D0/SQRT(4.D0*DD(I)**2+1.D0/D1**2)
!             HSP2= 2.D0*D2 - 2.D0/SQRT(4.D0*DD(I)**2+1.D0/D2**2)
              HSP1= HSP1/P2
              HSP2= HSP2/P2
!             D3= D1 + DF*(HSP(I)/27.21D0-HSP1)/(HSP2-HSP1)
              D1= D2
              D2= D3
     10    CONTINUE
           DO 20 J=1,JMAX
              QF=Q2-Q1
!             HPP1= 4.D0*Q1 - 8.D0/SQRT(4.D0*QQ(I)**2+1.D0/Q1**2)
!      1            + 4.D0/SQRT(8.D0*QQ(I)**2+1.D0/Q1**2)
!             HPP2= 4.D0*Q2 - 8.D0/SQRT(4.D0*QQ(I)**2+1.D0/Q2**2)
!      1            + 4.D0/SQRT(8.D0*QQ(I)**2+1.D0/Q2**2)
              HPP1= HPP1/P4
              HPP2= HPP2/P4
!             Q3= Q1 + QF*(HPP/27.21D0-HPP1)/(HPP2-HPP1)
              Q1= Q2
              Q2= Q3
     20    CONTINUE
!          AM(I)= GSS(I)/27.21D0
           AD(I)= D2
           AQ(I)= Q2
           AMM(I)=AM(I)
diff -cdN ../src.old//compare.csh ./compare.csh
*** ../src.old//compare.csh
--- ./compare.csh	Mon Jan 30 11:19:07 1995
***************
*** 0 ****
--- 1,6 ----
+ #!/usr/bin/tcsh
+ foreach x (*.out)
+     tr "0" " " <$x >/tmp/old.$$
+     tr "0" " " /tmp/new.$$
+     diff -t /tmp/old.$$ /tmp/new.$$ >$x:r.diff
+ end
diff -cdN ../src.old//compfg.f ./compfg.f
*** ../src.old//compfg.f	Tue Apr 20 03:38:10 1993
--- ./compfg.f	Wed Jan 25 17:28:17 1995
***************
*** 2,11 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION XPARAM(MAXPAR),GRAD(MAXPAR)
!       LOGICAL LGRAD, FULSCF
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR),IDUMY,DUMY(MAXPAR)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /ATHEAT/ ATHEAT
        COMMON /WMATRX/ WJ(N2ELEC), WK(N2ELEC)
        COMMON /ENUCLR/ ENUCLR
--- 2,11 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION XPARAM(MAXPAR),GRAD(MAXPAR)
!       LOGICAL LGRAD, FULSCF, LIMSCF
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR),IDUMY,DUMY(MAXPAR)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /ATHEAT/ ATHEAT
        COMMON /WMATRX/ WJ(N2ELEC), WK(N2ELEC)
        COMMON /ENUCLR/ ENUCLR
***************
*** 153,159 ****
        ENDIF
        IF (ISEPS) THEN
  C The following routine constructs the dielectric screening surface
!            CALL CONSTS (COORD,.TRUE.)
  C The following routine constructs dielectric response matrix CCMAT
          CALL BTOC (COORD)
  C A. Klamt 18.7.91
--- 153,159 ----
        ENDIF
        IF (ISEPS) THEN
  C The following routine constructs the dielectric screening surface
!            CALL CONSTS (COORD)
  C The following routine constructs dielectric response matrix CCMAT
          CALL BTOC (COORD)
  C A. Klamt 18.7.91
diff -cdN ../src.old//consts.f ./consts.f
*** ../src.old//consts.f	Tue Apr 20 03:38:10 1993
--- ./consts.f	Thu Jan 26 10:31:50 1995
***************
*** 10,16 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 10,16 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NNX(2,NUMATM)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 122,128 ****
              DIST1=0.D0
              DO 80 IX=1,3
     80       DIST1=DIST1+(XA(IX)-COORD(IX,NN1))**2
!             DIST=1./SQRT(DIST1)
              TM(1,1,I)=(COORD(1,NN1)-XA(1))*DIST
              TM(1,2,I)=(COORD(2,NN1)-XA(2))*DIST
              TM(1,3,I)=(COORD(3,NN1)-XA(3))*DIST
--- 122,128 ----
              DIST1=0.D0
              DO 80 IX=1,3
     80       DIST1=DIST1+(XA(IX)-COORD(IX,NN1))**2
!             DIST=1.D0/SQRT(DIST1)
              TM(1,1,I)=(COORD(1,NN1)-XA(1))*DIST
              TM(1,2,I)=(COORD(2,NN1)-XA(2))*DIST
              TM(1,3,I)=(COORD(3,NN1)-XA(3))*DIST
***************
*** 135,141 ****
              DIST2=0.D0
              DO 100 IX=1,3
    100       DIST2=DIST2+(XA(IX)-COORD(IX,NN2))**2
!             DIST=1./SQRT(DIST2)
              XX(1)=(COORD(1,NN2)-XA(1))*DIST
              XX(2)=(COORD(2,NN2)-XA(2))*DIST
              XX(3)=(COORD(3,NN2)-XA(3))*DIST
--- 135,141 ----
              DIST2=0.D0
              DO 100 IX=1,3
    100       DIST2=DIST2+(XA(IX)-COORD(IX,NN2))**2
!             DIST=1.D0/SQRT(DIST2)
              XX(1)=(COORD(1,NN2)-XA(1))*DIST
              XX(2)=(COORD(2,NN2)-XA(2))*DIST
              XX(3)=(COORD(3,NN2)-XA(3))*DIST
***************
*** 201,207 ****
    130       CONTINUE
              DO 150 K = 1, NUMAT
                 IF (K . EQ. I) GO TO 150
!                DIST=0.
                 DO 140 IX=1,3
                    DIST = DIST + (XX(IX) - COORD(IX,K))**2
    140          CONTINUE
--- 201,207 ----
    130       CONTINUE
              DO 150 K = 1, NUMAT
                 IF (K . EQ. I) GO TO 150
!                DIST=0.D0
                 DO 140 IX=1,3
                    DIST = DIST + (XX(IX) - COORD(IX,K))**2
    140          CONTINUE
***************
*** 325,331 ****
              NARJ=NAR(JPS)
              NSETFJ=NSETF(JPS)
              J=IATSP(JPS)
!             DIST=0.
              DO 370 IX=1,3
                 XJ(IX)=COORD(IX,J)-XI(IX)
    370       DIST=DIST+(XSP(IX,JPS)-XA(IX))**2
--- 325,331 ----
              NARJ=NAR(JPS)
              NSETFJ=NSETF(JPS)
              J=IATSP(JPS)
!             DIST=0.D0
              DO 370 IX=1,3
                 XJ(IX)=COORD(IX,J)-XI(IX)
    370       DIST=DIST+(XSP(IX,JPS)-XA(IX))**2
***************
*** 360,368 ****
                          J2=NSET(L)
  C                  AA=((DIRVEC(1,J2)*RJ-XX(1))**2+(DIRVEC(2,J2)*RJ
  C     &                   -XX(2))**2+(DIRVEC(3,J2)*RJ-XX(3))**2)
!                         AIJ=AIJ+((DIRVEC(1,J2)*RJ-XX(1))**2+(DIRVEC(2,J2
!      1)*RJ                   -XX(2))**2+(DIRVEC(3,J2)*RJ-XX(3))**2)**-.5
!      2D0
    420                CONTINUE
                    END IF
    430          CONTINUE
--- 360,373 ----
                          J2=NSET(L)
  C                  AA=((DIRVEC(1,J2)*RJ-XX(1))**2+(DIRVEC(2,J2)*RJ
  C     &                   -XX(2))**2+(DIRVEC(3,J2)*RJ-XX(3))**2)
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C                       AIJ=AIJ+((DIRVEC(1,J2)*RJ-XX(1))**2+(DIRVEC(2,J2
! C    1)*RJ                   -XX(2))**2+(DIRVEC(3,J2)*RJ-XX(3))**2)**-.5
! C    2D0
!                         AIJ=AIJ+((DIRVEC(1,J2)*RJ-XX(1))**2
!      1                          +(DIRVEC(2,J2)*RJ-XX(2))**2
!      2                          +(DIRVEC(3,J2)*RJ-XX(3))**2)**(-.5D0)
! C ***************************** at 1994-05-25 *****
    420                CONTINUE
                    END IF
    430          CONTINUE
diff -cdN ../src.old//cqden.f ./cqden.f
*** ../src.old//cqden.f	Tue Apr 20 03:38:10 1993
--- ./cqden.f	Tue Jan 17 15:25:03 1995
***************
*** 8,14 ****
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
!       COMMON /DENSTY/ P(MPACK)
        COMMON /CORE  / CORE(107)
        IDEN=0
        DO 30 I=1,NUMAT
--- 8,14 ----
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
!       COMMON /DENSTY/ P(MPACK), PA(MPACK), PB(MPACK)
        COMMON /CORE  / CORE(107)
        IDEN=0
        DO 30 I=1,NUMAT
diff -cdN ../src.old//dcart.f ./dcart.f
*** ../src.old//dcart.f	Tue Apr 20 03:38:10 1993
--- ./dcart.f	Wed Jan 25 10:28:23 1995
***************
*** 77,83 ****
                 DO 120 JK=K2L,K2U
                    DO 120 KL=K3L,K3U
                       JJJ=JJJ+1
!                      KKK=KKK-1
                       DO 40 L=1,3
     40                CDI(L,1)=COORD(L,JJ)+TVEC(L,1)*IK+TVEC(L,2)*JK+TVEC
       1(L,3)*KL
--- 77,83 ----
                 DO 120 JK=K2L,K2U
                    DO 120 KL=K3L,K3U
                       JJJ=JJJ+1
! *                    KKK=KKK-1
                       DO 40 L=1,3
     40                CDI(L,1)=COORD(L,JJ)+TVEC(L,1)*IK+TVEC(L,2)*JK+TVEC
       1(L,3)*KL
***************
*** 173,178 ****
--- 173,179 ----
  C     DO 170 I=1,6
  C 170 LSTOR1(I)=LSTOR2(I)
        IF (  .NOT. DEBUG) RETURN
+       IW = 6
        WRITE(IW,'(//10X,''CARTESIAN COORDINATE DERIVATIVES'',//3X,
       1''NUMBER  ATOM '',5X,''X'',12X,''Y'',12X,''Z'',/)')
        IF(NCELLS.EQ.1)THEN
***************
*** 186,191 ****
--- 187,193 ----
       1 (I,NAT((I-1)/NCELLS+1),(DXYZ(J,I)+DXYZ(J,I+1)+DXYZ(J,I+2)
       2,J=1,3),I=1,NUMTOT,3)
        ENDIF
+       IROT = 2
        IF (ANADER) REWIND IROT
  C end of COSMO (A. Klamt) changes
        IF (  .NOT. DEBUG) RETURN
diff -cdN ../src.old//denrot.f ./denrot.f
*** ../src.old//denrot.f	Tue Apr 20 03:38:10 1993
--- ./denrot.f	Tue Jan 17 15:33:56 1995
***************
*** 2,8 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        COMMON /DENSTY/ P(MPACK),PA(MPACK),PB(MPACK)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 2,8 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        COMMON /DENSTY/ P(MPACK),PA(MPACK),PB(MPACK)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
diff -cdN ../src.old//deri2.f ./deri2.f
*** ../src.old//deri2.f	Tue Apr 20 03:38:12 1993
--- ./deri2.f	Fri Jan 27 09:43:44 1995
***************
*** 79,85 ****
        COMMON /WORK2 / BAB(MMCI,MMCI),
       +DUMY(NMECI**4+2*NMECI**3+NMECI**2-MMCI*MMCI)
        COMMON /NUMCAL/ NUMCAL
!       DIMENSION LCONV(60)
        LOGICAL FAIL, LCONV, DEBUG, LBAB
        CHARACTER KEYWRD*241
        DATA ICALCN/0/
--- 79,85 ----
        COMMON /WORK2 / BAB(MMCI,MMCI),
       +DUMY(NMECI**4+2*NMECI**3+NMECI**2-MMCI*MMCI)
        COMMON /NUMCAL/ NUMCAL
!       DIMENSION LCONV(MMCI)
        LOGICAL FAIL, LCONV, DEBUG, LBAB
        CHARACTER KEYWRD*241
        DATA ICALCN/0/
***************
*** 90,96 ****
        IF(ICALCN.NE.NUMCAL) THEN
           DEBUG=INDEX(KEYWRD,' DERI2').NE.0
           ICALCN=NUMCAL
!          MAXITE=MIN(60,INT(SQRT(NMECI**3.D0)),MPACK*2/NVAR)
           MAXITE=MIN(MAXITE,MIN(NW2,NW3)/MAX(MINEAR,NINEAR))
           NFIRST=MIN(NVAR,1+MAXITE/4)
        ENDIF
--- 90,96 ----
        IF(ICALCN.NE.NUMCAL) THEN
           DEBUG=INDEX(KEYWRD,' DERI2').NE.0
           ICALCN=NUMCAL
!          MAXITE=MIN(MMCI,INT(SQRT(NMECI**3.D0)),MPACK*2/NVAR)
           MAXITE=MIN(MAXITE,MIN(NW2,NW3)/MAX(MINEAR,NINEAR))
           NFIRST=MIN(NVAR,1+MAXITE/4)
        ENDIF
diff -cdN ../src.old//dernvo.f ./dernvo.f
*** ../src.old//dernvo.f	Tue Apr 20 03:38:12 1993
--- ./dernvo.f	Wed Jan 25 10:47:11 1995
***************
*** 43,48 ****
--- 43,54 ----
  *               IN KCAL/MOL/ANGSTROM (3 * NUMAT OF THESE)
  *
  ***********************************************************************
+ C
+ C    NW2 and NW3 should be set to *something*, probably sizes of WORK2 
+ C    and WORK3 arrays? Since the code works with NW2 and NW3 set to zero
+ C    by implicit initialization, we can as well do it explicitly.... -P.S.
+ C
+       PARAMETER (NW2=0,NW3=0)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM)
       1               ,NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA
       2               ,NCLOSE,NOPEN,NDUMY,FRACT
diff -cdN ../src.old//dfock2.f ./dfock2.f
*** ../src.old//dfock2.f	Tue Apr 20 03:38:12 1993
--- ./dfock2.f	Wed Jan 25 10:47:35 1995
***************
*** 111,117 ****
           IF(II.EQ.JJ) GOTO 260
           JA=NFIRST(JJ)
           JB=NLAST(JJ)
!          JC=NMIDLE(JJ)
              IF(IB-IA.GE.3.AND.JB-JA.GE.3)THEN
  C
  C                         HEAVY-ATOM  - HEAVY-ATOM
--- 111,117 ----
           IF(II.EQ.JJ) GOTO 260
           JA=NFIRST(JJ)
           JB=NLAST(JJ)
! *        JC=NMIDLE(JJ)
              IF(IB-IA.GE.3.AND.JB-JA.GE.3)THEN
  C
  C                         HEAVY-ATOM  - HEAVY-ATOM
diff -cdN ../src.old//dfpsav.f ./dfpsav.f
*** ../src.old//dfpsav.f	Tue Apr 20 03:38:12 1993
--- ./dfpsav.f	Tue Jan 17 15:33:50 1995
***************
*** 23,34 ****
        COMMON /ALPARM/ ALPARM(3,MAXPAR),X0, X1, X2, ILOOP
        COMMON /PPARAM/ CURRT
        COMMON /GPARAM/ CURRT1,CURRT2
!       COMMON /PROFIL/ PROFIL
        COMMON /SURF  / SURF
        COMMON /KLOOP / KLOOP
        COMMON /IJLP  / IJLP, ILP, JLP, JLP1, IONE
        COMMON /REACTN/ STEP, GEOA(3,NUMATM), GEOVEC(3,NUMATM),CALCST
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /ELEMTS/ ELEMNT(107)
--- 23,37 ----
        COMMON /ALPARM/ ALPARM(3,MAXPAR),X0, X1, X2, ILOOP
        COMMON /PPARAM/ CURRT
        COMMON /GPARAM/ CURRT1,CURRT2
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /PROFIL/ PROFIL
!       COMMON /PROFIC/ PROFIL
! C ***************************** at 1994-05-25 *****
        COMMON /SURF  / SURF
        COMMON /KLOOP / KLOOP
        COMMON /IJLP  / IJLP, ILP, JLP, JLP1, IONE
        COMMON /REACTN/ STEP, GEOA(3,NUMATM), GEOVEC(3,NUMATM),CALCST
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /ELEMTS/ ELEMNT(107)
diff -cdN ../src.old//diegrd.f ./diegrd.f
*** ../src.old//diegrd.f	Tue Apr 20 03:38:12 1993
--- ./diegrd.f	Thu Jan 26 10:32:35 1995
***************
*** 5,11 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                QS(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 5,11 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                QS(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NNX(2,NUMATM)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 22,28 ****
     20 DB(IX,I)=0.D0
        DB(0,1)=1.D0
        CALL CQDEN()
!       FACT=-2*13.6058*.5292*FEPSI*23.061
        DO 30 I=1,NPS
     30 QS(I)=0.D0
        I0=NPS2-NDEN
--- 22,28 ----
     20 DB(IX,I)=0.D0
        DB(0,1)=1.D0
        CALL CQDEN()
!       FACT=-2*13.6058D0*.5292D0*FEPSI*23.061D0
        DO 30 I=1,NPS
     30 QS(I)=0.D0
        I0=NPS2-NDEN
***************
*** 51,57 ****
                 XL(IX)=XXX
                 DIST2=DIST2+XXX*XXX
     90       CONTINUE
!             FF=QSK*QS(L)*FACT*DIST2**-1.5D0
              DO 100 IX=1,3
                 DXYZ(IX,IAK)=DXYZ(IX,IAK)-XL(IX)*FF
                 DXYZ(IX,IAL)=DXYZ(IX,IAL)+XL(IX)*FF
--- 51,60 ----
                 XL(IX)=XXX
                 DIST2=DIST2+XXX*XXX
     90       CONTINUE
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C           FF=QSK*QS(L)*FACT*DIST2**-1.5D0
!             FF=QSK*QS(L)*FACT*DIST2**(-1.5D0)
! C ***************************** at 1994-05-25 *****
              DO 100 IX=1,3
                 DXYZ(IX,IAK)=DXYZ(IX,IAK)-XL(IX)*FF
                 DXYZ(IX,IAL)=DXYZ(IX,IAL)+XL(IX)*FF
***************
*** 74,82 ****
                 XX(IX)=XXX
                 DIST2=DIST2+XXX*XXX
    140       CONTINUE
!             DDI=DD(NATI)*2*.529177
!             QQI2=(.529177*QQ(NATI))**2
!             FF0=-QSK*FACT*DIST2**-1.5D0
              IF(IDEL .EQ. 0) GO TO 150
              RM2=1.D0/DIST2
              RM4=RM2**2
--- 77,88 ----
                 XX(IX)=XXX
                 DIST2=DIST2+XXX*XXX
    140       CONTINUE
!             DDI=DD(NATI)*2*.529177D0
!             QQI2=(.529177D0*QQ(NATI))**2
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C           FF0=-QSK*FACT*DIST2**-1.5D0
!             FF0=-QSK*FACT*DIST2**(-1.5D0)
! C ***************************** at 1994-05-25 *****
              IF(IDEL .EQ. 0) GO TO 150
              RM2=1.D0/DIST2
              RM4=RM2**2
diff -cdN ../src.old//diis.f ./diis.f
*** ../src.old//diis.f	Tue Apr 20 03:38:12 1993
--- ./diis.f	Tue Jan 17 12:18:16 1995
***************
*** 329,335 ****
  C     CONTAINED IN BIGA)
  C
     80    IF (BIGA) 100,90,100
!    90    D=0.0
           RETURN
    100    DO 120 I=1,N
              IF (I-K) 110,120,110
--- 329,335 ----
  C     CONTAINED IN BIGA)
  C
     80    IF (BIGA) 100,90,100
!    90    D=0.0D0
           RETURN
    100    DO 120 I=1,N
              IF (I-K) 110,120,110
***************
*** 365,371 ****
  C
  C     REPLACE PIVOT BY RECIPROCAL
  C
!          A(KK)=1.0/BIGA
    180 CONTINUE
  C
  C     FINAL ROW AND COLUMN INTERCHANGE
--- 365,371 ----
  C
  C     REPLACE PIVOT BY RECIPROCAL
  C
!          A(KK)=1.0D0/BIGA
    180 CONTINUE
  C
  C     FINAL ROW AND COLUMN INTERCHANGE
diff -cdN ../src.old//dipind.f ./dipind.f
*** ../src.old//dipind.f	Tue Apr 20 03:38:14 1993
--- ./dipind.f	Tue Jan 17 15:33:41 1995
***************
*** 8,14 ****
        COMMON /CORE  / CORE(107)
        COMMON /DENSTY/ P(MPACK),PA(MPACK),PB(MPACK)
        COMMON /MOLMEC/ HTYPE(4),NHCO(4,20),NNHCO,ITYPE
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 8,14 ----
        COMMON /CORE  / CORE(107)
        COMMON /DENSTY/ P(MPACK),PA(MPACK),PB(MPACK)
        COMMON /MOLMEC/ HTYPE(4),NHCO(4,20),NNHCO,ITYPE
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
***************
*** 83,89 ****
  C
        IF (ICALCN.NE.NUMCAL) THEN
           DO 20 I=2,107
!    20    HYF(I,1)= 5.0832*DD(I)
           WTMOL=0.D0
           SUM=0.D0
           DO 30 I=1,NUMAT
--- 83,89 ----
  C
        IF (ICALCN.NE.NUMCAL) THEN
           DO 20 I=2,107
!    20    HYF(I,1)= 5.0832D0*DD(I)
           WTMOL=0.D0
           SUM=0.D0
           DO 30 I=1,NUMAT
diff -cdN ../src.old//dipole.f ./dipole.f
*** ../src.old//dipole.f	Tue Apr 20 03:38:14 1993
--- ./dipole.f	Tue Jan 17 12:19:00 1995
***************
*** 68,74 ****
        ICALCN=NUMCAL
        IF (FIRST) THEN
           DO 10 I=2,107
!    10    HYF(I,1)= 5.0832*DD(I)
           WTMOL=0.D0
           SUM=0.D0
           DO 20 I=1,NUMAT
--- 68,74 ----
        ICALCN=NUMCAL
        IF (FIRST) THEN
           DO 10 I=2,107
!    10    HYF(I,1)= 5.0832D0*DD(I)
           WTMOL=0.D0
           SUM=0.D0
           DO 20 I=1,NUMAT
diff -cdN ../src.old//drc.f ./drc.f
*** ../src.old//drc.f	Tue Apr 20 03:38:14 1993
--- ./drc.f	Wed Jan 25 10:48:43 1995
***************
*** 19,25 ****
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /NUMCAL/ NUMCAL
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
--- 19,25 ----
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /NUMCAL/ NUMCAL
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
***************
*** 431,437 ****
  C
  C  CONVERT ENERGY INTO KCAL/MOLE
  C
!          EKIN=0.5*EKIN/4.184D10
  C
  C  IF IT IS A DAMPED DRC, MODIFY ETOT TO REFLECT LOSS OF KINETIC ENERGY
  C
--- 431,437 ----
  C
  C  CONVERT ENERGY INTO KCAL/MOLE
  C
!          EKIN=0.5D0*EKIN/4.184D10
  C
  C  IF IT IS A DAMPED DRC, MODIFY ETOT TO REFLECT LOSS OF KINETIC ENERGY
  C
diff -cdN ../src.old//dvfill.f ./dvfill.f
*** ../src.old//dvfill.f	Tue Apr 20 03:38:14 1993
--- ./dvfill.f	Tue Jan 17 12:20:56 1995
***************
*** 16,23 ****
        DIRVEC (2,1) =   0.D0
        DIRVEC (3,1) =   0.D0
        ND=1
!       R=SQRT(.8)
!       H=SQRT(.2)
        DO 10 I= -1,1,2
           DO 10 J= 1,5
              ND=ND+1
--- 16,23 ----
        DIRVEC (2,1) =   0.D0
        DIRVEC (3,1) =   0.D0
        ND=1
!       R=SQRT(.8D0)
!       H=SQRT(.2D0)
        DO 10 I= -1,1,2
           DO 10 J= 1,5
              ND=ND+1
***************
*** 65,71 ****
     90 CONTINUE
        IF (K .EQ. 2*KH) GO TO 140
  C CREATE TO ADDITIONAL SUBGRIDS
!       T=1./3
        DO 110 I=1,20
           NA=FSET(1,I)
           NB=FSET(2,I)
--- 65,71 ----
     90 CONTINUE
        IF (K .EQ. 2*KH) GO TO 140
  C CREATE TO ADDITIONAL SUBGRIDS
!       T=1.D0/3.D0
        DO 110 I=1,20
           NA=FSET(1,I)
           NB=FSET(2,I)
***************
*** 77,83 ****
    100          DIRVEC(IX,ND)=DIRVEC(IX,NA)*(M-J1-J2-2*T)
       1                 +DIRVEC(IX,NB)*(J1+T)+DIRVEC(IX,NC)*(J2+T)
    110 CONTINUE
!       T=2./3
        DO 130 I=1,20
           NA=FSET(1,I)
           NB=FSET(2,I)
--- 77,83 ----
    100          DIRVEC(IX,ND)=DIRVEC(IX,NA)*(M-J1-J2-2*T)
       1                 +DIRVEC(IX,NB)*(J1+T)+DIRVEC(IX,NC)*(J2+T)
    110 CONTINUE
!       T=2.D0/3.D0
        DO 130 I=1,20
           NA=FSET(1,I)
           NB=FSET(2,I)
***************
*** 91,100 ****
    130 CONTINUE
  C NORMALIZE ALL VECTORS
    140 DO 170 I=1,NPPA
!          DIST=0.
           DO 150 IX=1,3
    150    DIST=DIST+DIRVEC(IX,I)**2
!          DIST=1./SQRT(DIST)
           DO 160 IX=1,3
    160    DIRVEC(IX,I)=DIRVEC(IX,I)*DIST
    170 CONTINUE
--- 91,100 ----
    130 CONTINUE
  C NORMALIZE ALL VECTORS
    140 DO 170 I=1,NPPA
!          DIST=0.D0
           DO 150 IX=1,3
    150    DIST=DIST+DIRVEC(IX,I)**2
!          DIST=1.D0/SQRT(DIST)
           DO 160 IX=1,3
    160    DIRVEC(IX,I)=DIRVEC(IX,I)*DIST
    170 CONTINUE
diff -cdN ../src.old//ef.f ./ef.f
*** ../src.old//ef.f	Tue Apr 20 03:38:14 1993
--- ./ef.f	Wed Jan 25 17:49:50 1995
***************
*** 1,6 ****
        SUBROUTINE EF(XPARAM, NVAR, FUNCT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
!       REAL*8 LAMDA,LAMDA0
        INCLUDE 'SIZES'
        DIMENSION XPARAM(MAXPAR)
  **********************************************************************
--- 1,6 ----
        SUBROUTINE EF(XPARAM, NVAR, FUNCT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
!       DOUBLE PRECISION LAMDA,LAMDA0
        INCLUDE 'SIZES'
        DIMENSION XPARAM(MAXPAR)
  **********************************************************************
***************
*** 27,38 ****
  C
        COMMON /MESAGE/ IFLEPO,ISCF
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /ISTOPE/ AMS(107)
        COMMON /LAST  / LAST
        COMMON /KEYWRD/ KEYWRD
!       COMMON /TIME  / TIME0
        COMMON /GRADNT/ GRAD(MAXPAR),GNFINA
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 27,41 ----
  C
        COMMON /MESAGE/ IFLEPO,ISCF
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /ISTOPE/ AMS(107)
        COMMON /LAST  / LAST
        COMMON /KEYWRD/ KEYWRD
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /GRADNT/ GRAD(MAXPAR),GNFINA
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 43,56 ****
  CONVEX      COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),
  CONVEX     1PMAT(MAXPAR*MAXPAR)
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),
!      1PMAT(MAXHES)
  CONVEX      COMMON /SCRACH/ PVEC
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
        COMMON/THREADS/NUM_THREADS
!       COMMON/FLUSH/NFLUSH
  
        DIMENSION IPOW(9), EIGVAL(MAXPAR),TVEC(MAXPAR),SVEC(MAXPAR),
       1FX(MAXPAR),HESSC(MAXHES),UC(MAXPAR**2),oldfx(maxpar),
--- 46,62 ----
  CONVEX      COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),
  CONVEX     1PMAT(MAXPAR*MAXPAR)
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),
!      1PMAT(MAXPAR**2)
  CONVEX      COMMON /SCRACH/ PVEC
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
        COMMON/THREADS/NUM_THREADS
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON/FLUSH/NFLUSH
!       COMMON/FLUSHC/NFLUSH
! C ***************************** at 1994-05-25 *****
  
        DIMENSION IPOW(9), EIGVAL(MAXPAR),TVEC(MAXPAR),SVEC(MAXPAR),
       1FX(MAXPAR),HESSC(MAXHES),UC(MAXPAR**2),oldfx(maxpar),
***************
*** 458,464 ****
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /LOCVAR/ LOCVAR(2,MAXPAR)
        COMMON /NUMSCF/ NSCF
        COMMON /KEYWRD/ KEYWRD
--- 464,470 ----
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /LOCVAR/ LOCVAR(2,MAXPAR)
        COMMON /NUMSCF/ NSCF
        COMMON /KEYWRD/ KEYWRD
***************
*** 556,567 ****
        COMMON /NUMCAL/ NUMCAL                                                    
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR)                                                              
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
        DIMENSION IPOW(9)               
        LOGICAL RESTRT,SCF1,LDUM,LUPD,log,rrscal,donr,gnmin 
        CHARACTER*241 KEYWRD,LINE                                               
        CHARACTER CHDOT*1,ZERO*1,NINE*1,CH*1
        DATA CHDOT,ZERO,NINE   /'.','0','9'/                     
--- 562,576 ----
        COMMON /NUMCAL/ NUMCAL                                                    
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR**2)                                                              
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
        DIMENSION IPOW(9)               
        LOGICAL RESTRT,SCF1,LDUM,LUPD,log,rrscal,donr,gnmin 
+ C ***** Added    by Jiro Toyoda at 1994-05-25 *****
+       LOGICAL LIMSCF
+ C ***************************** at 1994-05-25 *****
        CHARACTER*241 KEYWRD,LINE                                               
        CHARACTER CHDOT*1,ZERO*1,NINE*1,CH*1
        DATA CHDOT,ZERO,NINE   /'.','0','9'/                     
***************
*** 712,719 ****
       1osmin,ts,lrjk,lorjk,rrscal,donr)
  C     This version forms geometry step by either pure NR, P-RFO or QA
  C     algorithm, under the condition that the steplength is less than dmax
!       IMPLICIT REAL*8(A-H,O-Z)
!       REAL*8 LAMDA,lamda0
        INCLUDE 'SIZES'                                                           
        logical ts,rscal,frodo1,frodo2,lrjk,lorjk,rrscal,donr
        DIMENSION EIGVAL(MAXPAR),FX(MAXPAR)                                       
--- 721,728 ----
       1osmin,ts,lrjk,lorjk,rrscal,donr)
  C     This version forms geometry step by either pure NR, P-RFO or QA
  C     algorithm, under the condition that the steplength is less than dmax
!       IMPLICIT DOUBLE PRECISION(A-H,O-Z)
!       DOUBLE PRECISION LAMDA,lamda0
        INCLUDE 'SIZES'                                                           
        logical ts,rscal,frodo1,frodo2,lrjk,lorjk,rrscal,donr
        DIMENSION EIGVAL(MAXPAR),FX(MAXPAR)                                       
***************
*** 1009,1015 ****
  C      4 : READ IN FROM FTN009 (DURING RESTART, PARTLY OR WHOLE,                
  C          ALREADY DONE AT THIS POINT)                                          
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)                  
!       COMMON /GEOM  / GEO(3,NUMATM)                                             
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)         
        COMMON /LAST  / LAST                                                      
        COMMON /KEYWRD/ KEYWRD                                                    
--- 1018,1024 ----
  C      4 : READ IN FROM FTN009 (DURING RESTART, PARTLY OR WHOLE,                
  C          ALREADY DONE AT THIS POINT)                                          
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)                  
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)         
        COMMON /LAST  / LAST                                                      
        COMMON /KEYWRD/ KEYWRD                                                    
***************
*** 1021,1028 ****
        COMMON /NUMCAL/ NUMCAL                                                    
        COMMON /SIGMA2/ GNEXT1(MAXPAR), GMIN1(MAXPAR)                             
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR)                                                              
!       COMMON /SCRACH/ PVEC                                                      
        COMMON /TIMDMP/ TLEFT, TDUMP
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
--- 1030,1037 ----
        COMMON /NUMCAL/ NUMCAL                                                    
        COMMON /SIGMA2/ GNEXT1(MAXPAR), GMIN1(MAXPAR)                             
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR**2)                                                              
!       COMMON /SCRACH/ PVEC(MAXPAR**2)                                           
        COMMON /TIMDMP/ TLEFT, TDUMP
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
***************
*** 1271,1277 ****
  C
        END
        SUBROUTINE PRJFC(F,xparam,nvar) 
!       IMPLICIT REAL*8(A-H,O-Z)
        INCLUDE 'SIZES'
  C                                                                       
  C  CALCULATES PROJECTED FORCE CONSTANT MATRIX (F).                      
--- 1280,1286 ----
  C
        END
        SUBROUTINE PRJFC(F,xparam,nvar) 
!       IMPLICIT DOUBLE PRECISION(A-H,O-Z)
        INCLUDE 'SIZES'
  C                                                                       
  C  CALCULATES PROJECTED FORCE CONSTANT MATRIX (F).                      
***************
*** 1295,1300 ****
--- 1304,1311 ----
       *          P(MAXPAR,MAXPAR),COF(MAXPAR,MAXPAR)                     
        DIMENSION TENS(3,3,3),ROT(3,3),SCR(3,3),ISCR(6),CMASS(3)          
        dimension coord(3,numatm),dx(maxpar),xparam(maxpar)
+       DIMENSION DETX(2)
+       EQUIVALENCE (DET,DETX(1))
        PARAMETER (ZERO=0.0d+00, ONE=1.0d+00, EPS=1.0d-14,                
       *           CUT5=1.0d-05, CUT8=1.0d-08)                            
  C                                                                       
***************
*** 1439,1445 ****
        CALL DGEFA(ROT,3,3,ISCR,INFO)                                     
        IF(INFO.NE.0) STOP                                                
        DET=ZERO                                                          
!       CALL DGEDI(ROT,3,3,ISCR,DET,SCR,1)                                
  C                                                                       
     22 CONTINUE                                                          
  c     WRITE (6,702)                                                     
--- 1450,1456 ----
        CALL DGEFA(ROT,3,3,ISCR,INFO)                                     
        IF(INFO.NE.0) STOP                                                
        DET=ZERO                                                          
!       CALL DGEDI(ROT,3,3,ISCR,DETX,SCR,1)                                
  C                                                                       
     22 CONTINUE                                                          
  c     WRITE (6,702)                                                     
***************
*** 1523,1529 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)                                       
        INCLUDE 'SIZES'
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR)                                                              
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),                        
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
--- 1534,1540 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)                                       
        INCLUDE 'SIZES'
        COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR),BMAT(MAXPAR,MAXPAR),                  
!      *PMAT(MAXPAR**2)                                                              
        COMMON/OPTEF/OLDF(MAXPAR),D(MAXPAR),VMODE(MAXPAR),                        
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
***************
*** 1570,1576 ****
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
  CONVEX      COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR*3)
!       COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR)
        COMMON /GRADNT/ GRAD(MAXPAR),GNFINA
  C
        DATA ZERO/0.0D0/
--- 1581,1588 ----
       $U(MAXPAR,MAXPAR),DD,rmin,rmax,omin,xlamd,xlamd0,skal,
       $MODE,NSTEP,NEGREQ,IPRNT
  CONVEX      COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR*3)
!       COMMON /NLLCOM/ HESS(MAXPAR,MAXPAR), BMAT(MAXPAR,MAXPAR),
!      .                PMAT(MAXPAR**2)
        COMMON /GRADNT/ GRAD(MAXPAR),GNFINA
  C
        DATA ZERO/0.0D0/
***************
*** 1760,1766 ****
  C ***********************************************************************
  
        SUBROUTINE DGEDI(A,LDA,N,IPVT,DET,WORK,JOB)                       
!       IMPLICIT REAL*8(A-H,O-Z)
        DIMENSION A(LDA,1),DET(2),WORK(1),IPVT(1)                         
  C                                                                       
  C     DGEDI COMPUTES THE DETERMINANT AND INVERSE OF A MATRIX            
--- 1772,1778 ----
  C ***********************************************************************
  
        SUBROUTINE DGEDI(A,LDA,N,IPVT,DET,WORK,JOB)                       
!       IMPLICIT DOUBLE PRECISION(A-H,O-Z)
        DIMENSION A(LDA,1),DET(2),WORK(1),IPVT(1)                         
  C                                                                       
  C     DGEDI COMPUTES THE DETERMINANT AND INVERSE OF A MATRIX            
***************
*** 1881,1887 ****
        RETURN                                                            
        END                                                               
        SUBROUTINE DGEFA(A,LDA,N,IPVT,INFO)                               
!       IMPLICIT REAL*8(A-H,O-Z)
        DIMENSION A(LDA,1),IPVT(1)                                        
  C                                                                       
  C     DGEFA FACTORS A DOUBLE PRECISION MATRIX BY GAUSSIAN ELIMINATION.  
--- 1893,1899 ----
        RETURN                                                            
        END                                                               
        SUBROUTINE DGEFA(A,LDA,N,IPVT,INFO)                               
!       IMPLICIT DOUBLE PRECISION(A-H,O-Z)
        DIMENSION A(LDA,1),IPVT(1)                                        
  C                                                                       
  C     DGEFA FACTORS A DOUBLE PRECISION MATRIX BY GAUSSIAN ELIMINATION.  
***************
*** 1980,1986 ****
  C*MODULE BLAS1   *DECK DSCAL
        SUBROUTINE  DSCAL(N,DA,DX,INCX)
        IMPLICIT DOUBLE PRECISION(A-H,O-Z)
!       DIMENSION DX(1)
  C
  C     SCALES A VECTOR BY A CONSTANT.
  C           DX(I) = DA * DX(I)
--- 1992,1998 ----
  C*MODULE BLAS1   *DECK DSCAL
        SUBROUTINE  DSCAL(N,DA,DX,INCX)
        IMPLICIT DOUBLE PRECISION(A-H,O-Z)
!       DIMENSION DX(*)
  C
  C     SCALES A VECTOR BY A CONSTANT.
  C           DX(I) = DA * DX(I)
***************
*** 2022,2028 ****
  C*MODULE BLAS1   *DECK DSWAP
        SUBROUTINE  DSWAP (N,DX,INCX,DY,INCY)
        IMPLICIT DOUBLE PRECISION(A-H,O-Z)
!       DIMENSION DX(1),DY(1)
  C
  C     INTERCHANGES TWO VECTORS.
  C           DX(I) <==> DY(I)
--- 2034,2040 ----
  C*MODULE BLAS1   *DECK DSWAP
        SUBROUTINE  DSWAP (N,DX,INCX,DY,INCY)
        IMPLICIT DOUBLE PRECISION(A-H,O-Z)
!       DIMENSION DX(*),DY(*)
  C
  C     INTERCHANGES TWO VECTORS.
  C           DX(I) <==> DY(I)
diff -cdN ../src.old//elements.dat ./elements.dat
*** ../src.old//elements.dat
--- ./elements.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,662 ----
+  1SCF   MINDO GRADIENTS   PRECISE SYMMETRY
+     METHANE  HEAT OF FORMATION (MINDO/3) =  -6.278,     I.P.=13.30
+   TAKEN FROM "CORRECT" PROGRAM
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0096
+  C    1.1019593  1      0.000000  0      0.000000  0    1    0    0      0.0386
+  H    1.1019593  0    109.471221  0      0.000000  0    2    1    0     -0.0096
+  H    1.1019593  0    109.471221  0   -120.000000  0    2    1    3     -0.0096
+  H    1.1019593  0    109.471221  0    120.000000  0    2    1    3     -0.0096
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS   PRECISE SYMMETRY
+       METHANE  HEAT OF FORMATION (MNDO) =  -11.947,     I.P.=13.87
+      (DEWAR, M.J.S., THIEL, W., J.AM.CHEM.SOC. 99, 4907 1977.)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0176
+  C    1.1042316  1      0.000000  0      0.000000  0    1    0    0      0.0704
+  H    1.1042316  0    109.471221  0      0.000000  0    2    1    0     -0.0176
+  H    1.1042316  0    109.471221  0   -120.000000  0    2    1    3     -0.0176
+  H    1.1042316  0    109.471221  0    120.000000  0    2    1    3     -0.0176
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS   AM1   SYMMETRY
+         METHANE  HEAT OF FORMATION (AM1) =  -8.777,  I.P.= 13.31
+       (DEWAR, M.J.S., ET.AL. J.AM.CHEM.SOC., 107 3902 1985)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0665
+  C    1.1116115  1      0.000000  0      0.000000  0    1    0    0     -0.2659
+  H    1.1116115  0    109.471221  0      0.000000  0    2    1    0      0.0665
+  H    1.1116115  0    109.471221  0   -120.000000  0    2    1    3      0.0665
+  H    1.1116115  0    109.471221  0    120.000000  0    2    1    3      0.0665
+ 
+   2  1    3   4   5
+ 
+   PM3   PRECISE SYMMETRY   1SCF   GRADIENTS
+         METHANE  HEAT OF FORMATION (PM3) = -13.015,  I.P.=13.64
+      (TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0276
+  C    1.0870010  1      0.000000  0      0.000000  0    1    0    0     -0.1104
+  H    1.0870010  0    109.471221  0      0.000000  0    2    1    0      0.0276
+  H    1.0870010  0    109.471221  0   -120.000000  0    2    1    3      0.0276
+  H    1.0870010  0    109.471221  0    120.000000  0    2    1    3      0.0276
+ 
+   2  1    3   4   5
+ 
+  GRADIENTS  PRECISE 1SCF   
+   Lithium Hydride HEAT OF FORMATION (MNDO)= 23.206 Kcal/mol
+ 
+ Li    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4382
+  H    1.3761355  1      0.000000  0      0.000000  0    1    0    0     -0.4382
+ 
+  1SCF   GRADIENTS     PRECISE
+              BEO  HEAT OF FORMATION (MNDO)= 38.582,  I.P.=11.23
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Be    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4463
+  O    1.3354373  1      0.000000  0      0.000000  0    1    0    0     -0.4463
+ 
+  1SCF   GRADIENTS     PRECISE  PM3
+               BEO  HEAT OF FORMATION (PM3)= 53.045,  I.P.=10.17
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Be    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.6261
+  O    1.3039522  1      0.000000  0      0.000000  0    1    0    0     -0.6261
+ 
+  1SCF   GRADIENTS    PRECISE SYMMETRY   MINDO/3
+        BF3  HEAT OF FORMATION (MINDO/3) = -270.161,     I.P.=12.35
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  B    0.0000000  0      0.000000  0      0.000000  0    0    0    0      1.3345
+ XX    1.3023343  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  F    1.3023343  0     90.000000  0    180.000000  0    1    2    3     -0.4448
+  F    1.3023343  0     90.000000  0     60.000000  0    1    2    3     -0.4448
+  F    1.3023343  0     90.000000  0    -60.000000  0    1    2    3     -0.4448
+ 
+   2  1    4   5   6
+ 
+  1SCF   GRADIENTS    PRECISE SYMMETRY
+           BF3  HEAT OF FORMATION (MNDO) = -260.976,     I.P.=16.22
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  B    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.5270
+ XX    1.3160242  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  F    1.3160242  0     90.000000  0    180.000000  0    1    2    3     -0.1757
+  F    1.3160242  0     90.000000  0     60.000000  0    1    2    3     -0.1757
+  F    1.3160242  0     90.000000  0    -60.000000  0    1    2    3     -0.1757
+ 
+   2  1    4   5   6
+ 
+  AM1 1SCF   GRADIENTS    PRECISE SYMMETRY
+           BF3  HEAT OF FORMATION (AM1)  = -272.147,     I.P.=14.94
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  B    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4411
+ XX    1.3063979  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  F    1.3063979  0     90.000000  0    180.000000  0    1    2    3     -0.1470
+  F    1.3063979  0     90.000000  0     60.000000  0    1    2    3     -0.1470
+  F    1.3063979  0     90.000000  0    -60.000000  0    1    2    3     -0.1470
+ 
+   2  1    4   5   6
+ 
+  1SCF   MINDO GRADIENTS   PRECISE SYMMETRY
+     METHANE  HEAT OF FORMATION (MINDO/3) =  -6.278,     I.P.=13.30
+   TAKEN FROM "CORRECT" PROGRAM
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0096
+  C    1.1019593  1      0.000000  0      0.000000  0    1    0    0      0.0386
+  H    1.1019593  0    109.471221  0      0.000000  0    2    1    0     -0.0096
+  H    1.1019593  0    109.471221  0   -120.000000  0    2    1    3     -0.0096
+  H    1.1019593  0    109.471221  0    120.000000  0    2    1    3     -0.0096
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS   PRECISE SYMMETRY
+       METHANE  HEAT OF FORMATION (MNDO) =  -11.947,     I.P.=13.87
+      (DEWAR, M.J.S., THIEL, W., J.AM.CHEM.SOC. 99, 4907 1977.)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0176
+  C    1.1042316  1      0.000000  0      0.000000  0    1    0    0      0.0704
+  H    1.1042316  0    109.471221  0      0.000000  0    2    1    0     -0.0176
+  H    1.1042316  0    109.471221  0   -120.000000  0    2    1    3     -0.0176
+  H    1.1042316  0    109.471221  0    120.000000  0    2    1    3     -0.0176
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS   AM1   SYMMETRY
+         METHANE  HEAT OF FORMATION (AM1) =  -8.777,  I.P.= 13.31
+       (DEWAR, M.J.S., ET.AL. J.AM.CHEM.SOC., 107 3902 1985)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0665
+  C    1.1116115  1      0.000000  0      0.000000  0    1    0    0     -0.2659
+  H    1.1116115  0    109.471221  0      0.000000  0    2    1    0      0.0665
+  H    1.1116115  0    109.471221  0   -120.000000  0    2    1    3      0.0665
+  H    1.1116115  0    109.471221  0    120.000000  0    2    1    3      0.0665
+ 
+   2  1    3   4   5
+ 
+   PM3   PRECISE SYMMETRY   1SCF   GRADIENTS
+         METHANE  HEAT OF FORMATION (PM3) = -13.015,  I.P.=13.64
+      (TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0276
+  C    1.0870010  1      0.000000  0      0.000000  0    1    0    0     -0.1104
+  H    1.0870010  0    109.471221  0      0.000000  0    2    1    0      0.0276
+  H    1.0870010  0    109.471221  0   -120.000000  0    2    1    3      0.0276
+  H    1.0870010  0    109.471221  0    120.000000  0    2    1    3      0.0276
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS  SYMMETRY   PRECISE  MINDO/3
+     AMMONIA  HEAT OF FORMATION (MINDO/3) =  -9.135,   I.P.=10.07
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  N    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1669
+ XX    1.0312340  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.0312340  0    114.343228  1    180.000000  0    1    2    3      0.0556
+  H    1.0312340  0    114.343228  0     60.000000  0    1    2    3      0.0556
+  H    1.0312340  0    114.343228  0    -60.000000  0    1    2    3      0.0556
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  1SCF   GRADIENTS  SYMMETRY   PRECISE
+        AMMONIA  HEAT OF FORMATION (MNDO) =  -6.371,   I.P.=11.19
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  N    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2268
+ XX    1.0073111  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.0073111  0    113.414743  1    180.000000  0    1    2    3      0.0756
+  H    1.0073111  0    113.414743  0     60.000000  0    1    2    3      0.0756
+  H    1.0073111  0    113.414743  0    -60.000000  0    1    2    3      0.0756
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  1SCF   GRADIENTS AM1  SYMMETRY   PRECISE
+         AMMONIA  HEAT OF FORMATION (AM1) =  -7.283,   I.P.=10.42
+         (DEWAR, M.J.S., ET.AL. J.AM.CHEM.SOC., 107 3902 1985)
+  N    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.3957
+ XX    0.9978448  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    0.9978448  0    109.855124  1    180.000000  0    1    2    3      0.1319
+  H    0.9978448  0    109.855124  0     60.000000  0    1    2    3      0.1319
+  H    0.9978448  0    109.855124  0    -60.000000  0    1    2    3      0.1319
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  1SCF   GRADIENTS PM3  SYMMETRY   PRECISE
+          AMMONIA  HEAT OF FORMATION (PM3) = -3.066,   I.P.=9.6956
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  N    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0065
+ XX    0.9994640  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    0.9994640  0    110.865210  1    180.000000  0    1    2    3     -0.0022
+  H    0.9994640  0    110.865210  0     60.000000  0    1    2    3     -0.0022
+  H    0.9994640  0    110.865210  0    -60.000000  0    1    2    3     -0.0022
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  GRADIENTS   SYMMETRY PRECISE  1SCF   MINDO3
+          CO2 HEAT OF FORMATION (MINDO/3) = -95.733,   I.P.=12.74
+     TAKEN FROM "CORRECT" PROGRAM
+  O    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.4758
+  C    1.1798152  1      0.000000  0      0.000000  0    1    0    0      0.9517
+  O    1.1798152  0    180.000000  0    180.000000  0    2    1    0     -0.4758
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS   SYMMETRY PRECISE
+   CARBON DIOXIDE HEAT OF FORMATION (MNDO)= -75.079,   I.P.=12.79
+     (DEWAR, M.J.S., THIEL, W., J.AM.CHEM.SOC. 99, 4907 1977.)
+  O    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2240
+  C    1.1862049  1      0.000000  0      0.000000  0    1    0    0      0.4480
+  O    1.1862049  0    180.000000  0      0.000000  0    2    1    0     -0.2240
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS AM1    SYMMETRY PRECISE
+  CARBON DIOXIDE HEAT OF FORMATION (AM1) =  -79.829,   I.P.=13.21
+          (DEWAR, M.J.S., ET.AL. J.AM.CHEM.SOC., 107 3902 1985)
+  O    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2057
+  C    1.1893594  1      0.000000  0      0.000000  0    1    0    0      0.4114
+  O    1.1893594  0    180.000000  0      0.000000  0    2    1    0     -0.2057
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY PRECISE
+   CARBON DIOXIDE HEAT OF FORMATION (PM3) = -85.039,   I.P.=12.735
+     TAKEN FROM 'CORRECT' PROGRAM [MOPAC 4.20])
+  O    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2588
+  C    1.1806109  1      0.000000  0      0.000000  0    1    0    0      0.5177
+  O    1.1806109  0    180.000000  0    180.000000  0    2    1    0     -0.2588
+ 
+   2  1    3
+ 
+  GRADIENTS  SYMMETRY  MINDO/3 1SCF   
+        CF4  HEAT OF FORMATION (MINDO/3) = -223.856, I.P.=13.49
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  F    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.4330
+  C    1.3032006  1      0.000000  0      0.000000  0    1    0    0      1.7320
+  F    1.3032006  0    109.471000  0      0.000000  0    2    1    0     -0.4330
+  F    1.3032006  0    109.471000  0   -120.000000  0    2    1    3     -0.4330
+  F    1.3032006  0    109.471000  0    120.000000  0    2    1    3     -0.4330
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS  SYMMETRY
+           CF4  HEAT OF FORMATION (MNDO) = -214.177, I.P.=16.81
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  F    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2039
+  C    1.3469465  1      0.000000  0      0.000000  0    1    0    0      0.8157
+  F    1.3469465  0    109.471000  0      0.000000  0    2    1    0     -0.2039
+  F    1.3469465  0    109.471000  0   -120.000000  0    2    1    3     -0.2039
+  F    1.3469465  0    109.471000  0    120.000000  0    2    1    3     -0.2039
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS   SYMMETRY   AM1
+     CF4  HEAT OF FORMATION (AM1) =        -225.709,  I.P. = 15.32
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  F    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1442
+  C    1.3575716  1      0.000000  0      0.000000  0    1    0    0      0.5767
+  F    1.3575716  0    109.471000  0      0.000000  0    2    1    0     -0.1442
+  F    1.3575716  0    109.471000  0   -120.000000  0    2    1    3     -0.1442
+  F    1.3575716  0    109.471000  0    120.000000  0    2    1    3     -0.1442
+ 
+   2  1    3   4   5
+ 
+  1SCF   GRADIENTS  PM3 SYMMETRY
+            CF4  HEAT OF FORMATION (PM3) = -225.091, I.P.=16.79
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  F    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.1148
+  C    1.3367553  1      0.000000  0      0.000000  0    1    0    0      0.4592
+  F    1.3367553  0    109.471000  0      0.000000  0    2    1    0     -0.1148
+  F    1.3367553  0    109.471000  0   -120.000000  0    2    1    3     -0.1148
+  F    1.3367553  0    109.471000  0    120.000000  0    2    1    3     -0.1148
+ 
+   2  1    3   4   5
+ 
+   1SCF   GRADIENTS  PM3       SYMMETRY
+          MgF2   HEAT OF FORMATION (PM3) = -160.680      I.P.=13.889
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.0])
+  F    0.0000000  0     23.000000  0      0.000000  0    0    0    0     -0.3525
+ Mg    1.7623532  1      0.000000  0      0.000000  0    1    0    0      0.7051
+  F    1.7623532  0    110.177698  1    180.000000  0    2    1    0     -0.3525
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS   PRECISE
+   ALUMINUM FLUORIDE HEAT OF FORM'N (MNDO)= -83.560,     I.P.=8.62
+      (DAVIS, ET.AL. J. COMP. CHEM. 4 443, 1981.)
+ Al    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4020
+  F    1.5602339  1      0.000000  0      0.000000  0    1    0    0     -0.4020
+ 
+  1SCF   GRADIENTS   PRECISE   AM1
+   ALUMINUM FLUORIDE HEAT OF FORM'N (AM1) = -77.868  I.P.=8.90
+      DEWAR AND HOLDER, ORGANOMETALLICS, 9, 508-511 (1990)
+ Al    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.3295
+  F    1.5580834  1      0.000000  0      0.000000  0    1    0    0     -0.3295
+ 
+  1SCF   GRADIENTS  PM3   PRECISE
+   ALUMINUM FLUORIDE HEAT OF FORM'N (PM3) = -50.129  I.P.=9.29
+    (TAKEN FROM MOPAC 4.20)
+ Al    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2164
+  F    1.6521053  1      0.000000  0      0.000000  0    1    0    0     -0.2164
+ 
+  GRADIENTS  PRECISE    MINDO/3 1SCF   
+           SIH  HEAT OF FORMATION (MINDO/3)= 82.879,   I.P.=7.44
+    FROM "CORRECT" PROGRAM
+ Si    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1421
+  H    1.5053410  1      0.000000  0      0.000000  0    1    0    0     -0.1421
+ 
+  1SCF   GRADIENTS  PRECISE
+              SIH  HEAT OF FORMATION (MNDO)= 90.219,   I.P.=5.97
+    ORGANOMETALLICS 5 375 (1986)
+ Si    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4169
+  H    1.3743513  1      0.000000  0      0.000000  0    1    0    0     -0.4169
+ 
+  AM1   PRECISE 1SCF   GRADIENTS
+        SiH HEAT OF FORMATION SHOULD BE      89.818 KCAL
+        (TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.2794
+ Si    1.4536433  1      0.000000  0      0.000000  0    1    0    0     -0.7206
+ 
+  1SCF   GRADIENTS PM3 PRECISE
+              SIH  HEAT OF FORMATION (PM3) = 94.571, I.P.=7.07
+    (TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+ Si    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2514
+  H    1.5050665  1      0.000000  0      0.000000  0    1    0    0     -0.2514
+ 
+  GRADIENTS     PRECISE SYMMETRY MINDO/3 1SCF   
+           PF3  HEAT OF FORMATION (MINDO/3) = 2.522,   I.P.=9.843
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  P    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0964
+ XX    1.4175870  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.4175870  0     62.357890  1    180.000000  0    1    2    3      0.0321
+  H    1.4175870  0     62.357890  0     60.000000  0    1    2    3      0.0321
+  H    1.4175870  0     62.357890  0    -60.000000  0    1    2    3      0.0321
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  GRADIENTS     PRECISE SYMMETRY  1SCF   
+           PH3  HEAT OF FORMATION (MNDO) =   +3.936   I.P.=11.34
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  P    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2680
+ XX    1.3397630  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.3397630  0     59.171866  1    180.000000  0    1    2    3     -0.0893
+  H    1.3397630  0     59.171866  0     60.000000  0    1    2    3     -0.0893
+  H    1.3397630  0     59.171866  0    -60.000000  0    1    2    3     -0.0893
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  AM1 GRADIENTS     PRECISE SYMMETRY 1SCF   
+           AM1  HEAT OF FORMATION (AM1) =   +10.196   I.P.=10.42
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  P    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0396
+ XX    1.3632745  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.3632745  0     59.450121  1    180.000000  0    1    2    3      0.0132
+  H    1.3632745  0     59.450121  0     60.000000  0    1    2    3      0.0132
+  H    1.3632745  0     59.450121  0    -60.000000  0    1    2    3      0.0132
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  GRADIENTS PM3 PRECISE SYMMETRY 1SCF   
+            PH3  HEAT OF FORMATION (PM3) =   +0.223   I.P.=8.674
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  P    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4898
+ XX    1.3238810  1      0.000000  0      0.000000  0    1    0    0
+ XX    1.0000000  0    120.000000  0      0.000000  0    2    1    0
+  H    1.3238810  0     59.922627  1    180.000000  0    1    2    3     -0.1633
+  H    1.3238810  0     59.922627  0     60.000000  0    1    2    3     -0.1633
+  H    1.3238810  0     59.922627  0    -60.000000  0    1    2    3     -0.1633
+ 
+   2  1    4   5   6
+   4  2    5   6
+ 
+  GRADIENTS   1SCF   MINDO SYMMETRY
+          H2S  HEAT OF FORMATION (MINDO/3) = -2.584
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1383
+  S    1.3369590  1      0.000000  0      0.000000  0    1    0    0     -0.2767
+  H    1.3369590  0     99.619050  1      0.000000  0    2    1    0      0.1383
+ 
+   2  1    3
+ 
+  GRADIENTS   SYMMETRY 1SCF   
+              H2S  HEAT OF FORMATION (MNDO) = 3.831
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0338
+  S    1.2992680  1      0.000000  0      0.000000  0    1    0    0      0.0676
+  H    1.2992680  0     98.034913  1      0.000000  0    2    1    0     -0.0338
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS   SYMMETRY AM1
+              H2S  HEAT OF FORMATION (AM1) =  1.206
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0483
+  S    1.3225899  1      0.000000  0      0.000000  0    1    0    0     -0.0967
+  H    1.3225899  0     95.503378  1      0.000000  0    2    1    0      0.0483
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+              H2S  HEAT OF FORMATION (PM3) = -0.913   I.P.=9.628
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0     -0.0161
+  S    1.2903390  1      0.000000  0      0.000000  0    1    0    0      0.0323
+  H    1.2903390  0     93.513427  1      0.000000  0    2    1    0     -0.0161
+ 
+   2  1    3
+ 
+  1SCF   MINDO/3 GRADIENTS    PRECISE
+           HCl  HEAT OF FORMATION (MINDO/3)=-21.057,  I.P.=12.11
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2248
+ Cl    1.2298671  1      0.000000  0      0.000000  0    1    0    0     -0.2248
+ 
+  1SCF   GRADIENTS    PRECISE
+              HCl  HEAT OF FORMATION (MNDO)=-15.259,  I.P.=13.00
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1829
+ Cl    1.3481939  1      0.000000  0      0.000000  0    1    0    0     -0.1829
+ 
+  1SCF   GRADIENTS   AM1     PRECISE
+              HCl  HEAT OF FORMATION (AM1)= -24.608,  I.P.= 12.33
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1681
+ Cl    1.2835617  1      0.000000  0      0.000000  0    1    0    0     -0.1681
+ 
+  1SCF   GRADIENTS PM3    PRECISE
+             HCl  HEAT OF FORMATION (PM3) = -20.465,   I.P.=11.06
+      (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0970
+ Cl    1.2675466  1      0.000000  0      0.000000  0    1    0    0     -0.0970
+ 
+    1SCF   MNDO GRADIENTS PRECISE
+  Dimethylzinc  HEAT OF FORMATION (MNDO) =   19.876,     I.P.=10.542
+ 
+ Zn    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.3698
+  C    1.8839020  1      0.000000  0      0.000000  0    1    0    0     -0.1531
+  C    1.8839020  1    180.000000  1      0.000000  0    1    2    0     -0.1531
+  H    1.1105540  1    111.319038  1      0.000000  1    2    1    3     -0.0106
+  H    1.1105540  1    111.319038  1    120.000000  1    3    1    4     -0.0106
+  H    1.1105540  1    111.319038  1    120.000000  1    2    1    4     -0.0106
+  H    1.1105540  1    111.319038  1   -120.000000  1    2    1    4     -0.0106
+  H    1.1105540  1    111.319038  1   -120.000000  1    3    1    4     -0.0106
+  H    1.1105540  1    111.319038  1      0.000000  1    3    1    4     -0.0106
+ 
+   SYMMETRY   1SCF   AM1 GRADIENTS PRECISE
+  Dimethylzinc  HEAT OF FORMATION (AM1) =    19.842,     I.P.=9.738
+ 
+ Zn    0.0000000  0     12.000000  0      0.000000  0    0    0    0      0.5041
+  C    1.8991284  1      0.000000  0      0.000000  0    1    0    0     -0.5090
+  C    1.8991284  0    180.000000  0      0.000000  0    1    2    0     -0.5090
+  H    1.1144983  1    109.222291  1      0.000000  0    2    1    3      0.0857
+  H    1.1144983  0    109.222291  0    120.000000  0    3    1    4      0.0857
+  H    1.1144983  0    109.222291  0    120.000000  0    2    1    4      0.0857
+  H    1.1144983  0    109.222291  0   -120.000000  0    2    1    4      0.0857
+  H    1.1144983  0    109.222291  0   -120.000000  0    3    1    4      0.0857
+  H    1.1144983  0    109.222291  0    120.000000  0    3    1    8      0.0857
+ 
+   2  1    3
+   4  1    5   6   7   8   9
+   4  2    5   6   7   8   9
+ 
+    PM3 1SCF   GRADIENTS SYMMETRY
+           Zn(Me)2  HEAT OF FORMATION (PM3) = 8.208  I.P.=10.282
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.0])
+  Zn    0.0000000  0     12.000000  0      0.000000  0    0    0    0      0.2462
+   C    1.9374110  1      0.000000  0      0.000000  0    1    0    0     -0.3101
+   C    1.9374110  0    180.000000  0    180.000000  0    1    2    0     -0.3101
+   H    1.0952406  1    109.381903  1   -169.819541  1    2    1    3      0.0623
+   H    1.0952371  1    109.382653  1    -69.910708  1    3    1    4      0.0623
+   H    1.0952339  1    109.382574  1    120.001583  1    2    1    4      0.0623
+   H    1.0952386  1    109.378431  1   -119.997715  1    2    1    4      0.0623
+   H    1.0952380  1    109.379670  1    170.090429  1    3    1    4      0.0623
+   H    1.0952414  1    109.380883  1   -119.997445  1    3    1    8      0.0623
+ 
+    2  1    3
+ 
+   1SCF   GRADIENTS  PM3       SYMMETRY
+          GaCl3   HEAT OF FORMATION (PM3) = -79.665 I.P.=11.918
+           (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.0])
+ Cl    0.0000000  0     27.000000  0      0.000000  0    0    0    0     -0.3498
+ Ga    1.8938618  1      0.000000  0      0.000000  0    1    0    0      1.0494
+ Cl    1.8938618  0    119.999625  1      0.000000  0    2    1    0     -0.3498
+ Cl    1.8938618  0    119.999625  0   -179.999724  1    2    1    3     -0.3498
+ 
+   2  1    3   4
+   3  2    4
+ 
+  1SCF   GRADIENTS PRECISE
+   GERMANIUM FLUORIDE HEAT OF FORM'N (MNDO)=-16.389, I.P.=6.00
+ 
+ Ge    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.5274
+  F    1.7038791  1      0.000000  0      0.000000  0    1    0    0     -0.5274
+ 
+  1SCF   AM1 GRADIENTS PRECISE
+   GERMANIUM FLUORIDE HEAT OF FORM'N (AM1)= -19.735, I.P.=7.196
+ 
+ Ge    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4169
+  F    1.6567951  1      0.000000  0      0.000000  0    1    0    0     -0.4169
+ 
+  1SCF   PM3 GRADIENTS PRECISE
+  GERMANIUM FLUORIDE HEAT OF FORM'N (PM3)=   -3.332, I.P.=10.856
+ 
+ Ge    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2057
+  F    1.7110624  1      0.000000  0      0.000000  0    1    0    0     -0.2057
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+              AsH3 HEAT OF FORMATION (PM3) = 12.682   I.P.=9.909
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+  H    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.1230
+ As    1.5202769  1      0.000000  0      0.000000  0    1    0    0      0.3691
+  H    1.5202769  0     94.228408  1      0.000000  0    2    1    0     -0.1230
+  H    1.5202769  0     94.228408  0     94.565278  1    2    1    3     -0.1230
+ 
+   2  1    3   4
+   3  2    4
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+            SeCl2 HEAT OF FORMATION (PM3) = -38.011   I.P.=9.548
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.0491
+ Se    2.1637888  1      0.000000  0      0.000000  0    1    0    0      0.0982
+ Cl    2.1637888  0     99.674382  1      0.000000  0    2    1    0     -0.0491
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS     PRECISE
+                HBr  HEAT OF FORMATION (MNDO)=3.642,     I.P. = 12.10
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1082
+ Br    1.4396202  1      0.000000  0      0.000000  0    1    0    0     -0.1082
+ 
+  1SCF   GRADIENTS   AM1     PRECISE
+              HBr  HEAT OF FORMATION (AM1)= -10.502,  I.P.=11.46
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0871
+ Br    1.4210939  1      0.000000  0      0.000000  0    1    0    0     -0.0871
+ 
+  1SCF   GRADIENTS PM3      PRECISE
+               HBr  HEAT OF FORMATION (PM3) = 5.312 I.P.=12.13
+       (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 4.20])
+  H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1235
+ Br    1.4707126  1      0.000000  0      0.000000  0    1    0    0     -0.1235
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+             CdCl2 HEAT OF FORMATION (PM3) =-48.586   I.P.=11.297
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.6788
+ Cd    2.2252540  1      0.000000  0      0.000000  0    1    0    0      1.3576
+ Cl    2.2252540  0    179.999507  1      0.000000  0    2    1    0     -0.6788
+ 
+   2  1    3
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+            InCl3 HEAT OF FORMATION (PM3) = -72.782   I.P.=10.836
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     27.000000  0      0.000000  0    0    0    0     -0.0100
+ In    2.2812226  1      0.000000  0      0.000000  0    1    0    0      0.0301
+ Cl    2.2812226  0    120.000568  1      0.000000  0    2    1    0     -0.0100
+ Cl    2.2812226  0    120.000568  0    179.999620  1    2    1    3     -0.0100
+ 
+   2  1    3   4
+   3  2    4
+ 
+   1SCF   GRADIENTS PRECISE
+             SNF  HEAT OF FORMATION (MNDO)= -20.423,  I.P.= 7.06
+         (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Sn    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4676
+  F    1.8630613  1      0.000000  0      0.000000  0    1    0    0     -0.4676
+ 
+   1SCF   PM3 GRADIENTS PRECISE
+             SNF  HEAT OF FORMATION (PM3)=  -17.474,  I.P.= 7.28
+         (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Sn    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.3758
+  F    1.9277109  1      0.000000  0      0.000000  0    1    0    0     -0.3758
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+            SbCl3 HEAT OF FORMATION (PM3) = -72.438   I.P.=11.006
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     27.000000  0      0.000000  0    0    0    0     -0.2999
+ Sb    2.3202383  1      0.000000  0      0.000000  0    1    0    0      0.8998
+ Cl    2.3202383  0     97.025723  1      0.000000  0    2    1    0     -0.2999
+ Cl    2.3202383  0     97.025723  0    -98.004356  1    2    1    3     -0.2999
+ 
+   2  1    3   4
+   3  2    4
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+              TeH2 HEAT OF FORMATION (PM3) = 23.766   I.P.=8.804
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+  H    0.0000000  0     15.000000  0      0.000000  0    0    0    0     -0.0634
+ Te    1.6752840  1      0.000000  0      0.000000  0    1    0    0      0.1268
+  H    1.6752840  0     88.308549  1    180.000000  0    2    1    0     -0.0634
+ 
+   2  1    3
+ 
+ 1SCF   GRADIENTS      PRECISE
+              ICL  HEAT OF FORMATION (MNDO)= -6.700, I.P.=11.58
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+  I    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.2147
+ Cl    2.2623801  1      0.000000  0      0.000000  0    1    0    0     -0.2147
+ 
+    AM1 PRECISE    GRADIENTS 1SCF   
+              ICL  HEAT OF FORMATION (AM1) = -4.600,   I.P.=11.08
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+  I    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.1738
+ Cl    2.2184513  1      0.000000  0      0.000000  0    1    0    0     -0.1738
+ 
+  PM3      PRECISE    1SCF   GRADIENTS
+              ICL  HEAT OF FORMATION (PM3) = 10.779,   I.P.=9.74
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 5.00])
+  I    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0116
+ Cl    2.1916378  1      0.000000  0      0.000000  0    1    0    0     -0.0116
+ 
+  1SCF   GRADIENTS
+            HgCl2 HEAT OF FORMATION (MND0)= -36.932   I.P.=12.599
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.3154
+ Hg    2.2674477  1      0.000000  0      0.000000  0    1    0    0      0.6307
+ Cl    2.2674477  1    179.998898  1    180.000000  0    2    1    0     -0.3154
+ 
+  1SCF   GRADIENTS AM1
+            HgCl2 HEAT OF FORMATION (AM1)=  -44.833   I.P.=11.929
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.3226
+ Hg    2.2388527  1      0.000000  0      0.000000  0    1    0    0      0.6452
+ Cl    2.2388527  1    179.997918  1    180.000000  0    2    1    0     -0.3226
+ 
+  1SCF   GRADIENTS PM3
+            HgCl2 HEAT OF FORMATION (PM3) = -32.655   I.P.=10.775
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.3439
+ Hg    2.2446750  1      0.000000  0      0.000000  0    1    0    0      0.6878
+ Cl    2.2446761  1    179.990824  1      0.000000  0    2    1    0     -0.3439
+ 
+  PRECISE   1SCF   GRADIENTS
+             PBF  HEAT OF FORMATION (MNDO)= -22.575, I.P.= 7.45
+         (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Pb    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4818
+  F    1.9952996  1      0.000000  0      0.000000  0    1    0    0     -0.4818
+ 
+  PRECISE   PM3 1SCF   GRADIENTS
+             PBF  HEAT OF FORMATION (PM3)=  -20.958, I.P.= 7.36
+         (H.O.F. TAKEN FROM "CORRECT" PROGRAM)
+ Pb    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.3959
+  F    2.0276037  1      0.000000  0      0.000000  0    1    0    0     -0.3959
+ 
+  1SCF   GRADIENTS PM3   SYMMETRY
+             BiCl3 HEAT OF FORMATION (PM3) =-42.615   I.P.=10.551
+        (H.O.F. TAKEN FROM "CORRECT" PROGRAM [MOPAC 6.00])
+ Cl    0.0000000  0     12.000000  0      0.000000  0    0    0    0     -0.3177
+ Bi    2.4194239  1      0.000000  0      0.000000  0    1    0    0      0.9530
+ Cl    2.4194239  0     99.935484  1      0.000000  0    2    1    0     -0.3177
+ Cl    2.4194239  0     99.935484  0   -102.035208  1    2    1    3     -0.3177
+ 
+   2  1    3   4
+   3  2    4
diff -cdN ../src.old//esp.f ./esp.f
*** ../src.old//esp.f	Tue Jan 26 01:11:52 1993
--- ./esp.f	Thu Jan 26 11:04:37 1995
***************
*** 68,78 ****
        INCLUDE 'SIZES'
        DIMENSION IZ(100),XYZ(3,100),VDERW(53),DIST(100)
        DIMENSION XMIN(3),XMAX(3),COORD(3,NUMATM)
!       COMMON /GEOM/   GEO(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM), NABC(3*NUMATM)
  C
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
!       COMMON /WORK1/    POTPT(3,MESP), WORK1D(4*MESP)
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
  C
        DATA VDERW/53*0.0D0/
--- 68,78 ----
        INCLUDE 'SIZES'
        DIMENSION IZ(100),XYZ(3,100),VDERW(53),DIST(100)
        DIMENSION XMIN(3),XMAX(3),COORD(3,NUMATM)
!       COMMON /GEOM/   GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM), NABC(3*NUMATM)
  C
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
!       COMMON /WORK1/ POTPT(3,MESP), WORK1D(4*MESP),REST(21*MPACK-7*MESP)
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
  C
        DATA VDERW/53*0.0D0/
***************
*** 198,211 ****
  C      IN FEB. 1989 AT UCSF.
  C
  C***********************************************************************
!       COMMON /GEOM/   GEO(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /KEYWRD/ KEYWRD
  C
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/    POTPT(3,MESP), PAD1(2*MESP), RAD(MESP),
!      1IAS(MESP)
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
  C
        CHARACTER*241 KEYWRD
--- 198,211 ----
  C      IN FEB. 1989 AT UCSF.
  C
  C***********************************************************************
!       COMMON /GEOM/   GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /KEYWRD/ KEYWRD
  C
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/    POTPT(3,MESP), PAD1(2*MESP), RAD(MESP),
!      1IAS(MESP),REST(21*MPACK-6*MESP-MESP/2)
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
  C
        CHARACTER*241 KEYWRD
***************
*** 486,491 ****
--- 486,492 ----
        COMMON /DENSTY/ P(MPACK),PA(MPACK),PB(MPACK)
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
+      .                ,REST(21*MPACK-7*MESP)
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /DIPSTO/ UX,UY,UZ,CH(NUMATM)
        COMMON /ESPF/  AL((NUMATM+4)**2),A(NUMATM,NUMATM),B(NUMATM),
***************
*** 659,665 ****
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
!       COMMON /STO6G/  ALLC(6,5,2),ALLZ(6,5,2)
        COMMON /VECTOR/ C(MORB2*2+MAXORB*2)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 660,667 ----
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
!      .                ,REST(21*MPACK-7*MESP)
!       COMMON /STO6G/  ALLC(6,6,2),ALLZ(6,6,2)
        COMMON /VECTOR/ C(MORB2*2+MAXORB*2)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 949,955 ****
           WRITE(21,'(I5)') NESP
           DO 410 I=1,NESP
    410    WRITE(21,420) ESP(I),POTPT(1,I)/BOHR,POTPT(2,I)/BOHR,
!      1POTPT(3,I)
        ENDIF
    420 FORMAT(1X,4E16.7)
        RETURN
--- 951,957 ----
           WRITE(21,'(I5)') NESP
           DO 410 I=1,NESP
    410    WRITE(21,420) ESP(I),POTPT(1,I)/BOHR,POTPT(2,I)/BOHR,
!      1POTPT(3,I)/BOHR
        ENDIF
    420 FORMAT(1X,4E16.7)
        RETURN
***************
*** 1095,1101 ****
  C
  C     CALCULATE ROOT MEAN SQUARE FITS AND RELATIVE ROOT MEAN SQUARE FITS
  C
!       CTOT=0.0
        DO 100 I=1,NESP
           ESPC=0.D0
           DO 90 J=1,NATOM
--- 1097,1103 ----
  C
  C     CALCULATE ROOT MEAN SQUARE FITS AND RELATIVE ROOT MEAN SQUARE FITS
  C
!       CTOT=0.0D0
        DO 100 I=1,NESP
           ESPC=0.D0
           DO 90 J=1,NATOM
***************
*** 1208,1214 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        COMMON /NATYPE/ NZTYPE(107),MTYPE(30),LTYPE
!       COMMON /STO6G/ ALLC(6,5,2),ALLZ(6,5,2)
  C     SET-UP THE STEWART'S STO-3G EXPANSIONS
  C     FROM J. CHEM. PHYS. 52 431.
  C                                            1S
--- 1210,1216 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        COMMON /NATYPE/ NZTYPE(107),MTYPE(30),LTYPE
!       COMMON /STO6G/ ALLC(6,6,2),ALLZ(6,6,2)
  C     SET-UP THE STEWART'S STO-3G EXPANSIONS
  C     FROM J. CHEM. PHYS. 52 431.
  C                                            1S
***************
*** 1314,1321 ****
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,5,2),ALLZ(6,5,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
--- 1316,1324 ----
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
+      .                ,REST(21*MPACK-7*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,6,2),ALLZ(6,6,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
***************
*** 1461,1468 ****
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,5,2),ALLZ(6,5,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
--- 1464,1472 ----
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
+      .                ,REST(21*MPACK-7*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,6,2),ALLZ(6,6,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
***************
*** 1666,1673 ****
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,5,2),ALLZ(6,5,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
--- 1670,1678 ----
        COMMON /POTESP/ XC,YC,ZC,ESPNUC,ESPELE,NESP
        COMMON /ABC/    CO(3,NUMATM),IAN(NUMATM),NATOM
        COMMON /WORK1/  POTPT(3,MESP), ES(MESP), ESP(MESP), WORK1D(2*MESP)
+      .                ,REST(21*MPACK-7*MESP)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
!       COMMON /STO6G/  ALLC(6,6,2),ALLZ(6,6,2)
        COMMON /ESPC/ CC(MAXPR),CEN(MAXPR,3),IAM(MAXPR,2),IND(MAXPR),
       1EX(MAXPR),ESPI(MAXORB,MAXORB),FV(0:8,821),
       2FAC(0:7),DEX(-1:96),TF(0:2),
diff -cdN ../src.old//f2c_mopac.c ./f2c_mopac.c
*** ../src.old//f2c_mopac.c
--- ./f2c_mopac.c	Fri Jan 27 15:27:35 1995
***************
*** 0 ****
--- 1,38 ----
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
+ #include 
+ 
+ real etime_(real tim_buf[2])
+ {
+ static  char		first_call = 1 ;
+ static	double		start ;
+         struct time     tim ;
+         struct date     dat ;
+         double		hrs, mins, secs, time ;
+ 
+ gettime( &tim ) ;
+ getdate( &dat ) ;
+ hrs  = (double)dat.da_day * 24.0 + (double)tim.ti_hour ;
+ mins = hrs  * 60.0 + (double) tim.ti_min ;
+ secs = mins * 60.0 + (double) tim.ti_sec ;
+ time = secs        + (double) tim.ti_hund / 100.0 ;
+ if( first_call ){
+     first_call = 0 ;
+     start = time ;
+     }
+ tim_buf[0] = time - start ;
+ tim_buf[1] = 0 ;
+ return time - start ;
+ }
+ 
+ void fdate_(char *buf, ftnlen len)
+ {
+ 	time_t	t = time(NULL) ;
+ 	char *	p = asctime(localtime(&t)) ;
+ 
+ memcpy( buf, p, min( len, 24 ) ) ;
+ }
diff -cdN ../src.old//f77pc.c ./f77pc.c
*** ../src.old//f77pc.c
--- ./f77pc.c	Thu Jan 26 15:22:15 1995
***************
*** 0 ****
--- 1,102 ----
+ #include 
+ #include 
+ 
+ #define	F2C	"f2c"
+ #define	GCC	"gcc"
+ #define MAXCMD	(31*1024)
+ 
+ #ifndef EXIT_SUCCESS
+ #define EXIT_SUCCESS	0
+ #endif
+ #ifndef EXIT_FAILURE
+ #define	EXIT_FAILURE	~EXIT_SUCCESS
+ #endif
+ 
+ int
+ FortranFile( char *p )
+ {
+ p += strlen( p ) - 2 ;
+ return strcmp( p, ".f" ) == 0 || strcmp( p, ".F" ) == 0 ;
+ }
+ 
+ int
+ FortranArg( char *p )
+ {
+ return strcmp ( p, "-A"     ) == 0 || strcmp ( p, "-p"    ) == 0 ||
+        strncmp( p, "-Nn", 3 ) == 0 || strncmp( p, "-T", 2 ) == 0 ;
+ }
+ 
+ int
+ CommonArg( char *p )
+ {
+ return strcmp( p, "-g" ) == 0 ;
+ }
+ 
+ char *
+ MakeCName( char *p )
+ {
+ 	char	*c = malloc( strlen( p ) + 1 ) ;
+ 
+ strcpy( c, p ) ;
+ c[ strlen( c ) - 1 ] = 'c' ;
+ return c ;
+ }
+ 
+ int
+ RunCompiler( char **args )
+ {
+ 	char	cmd[ MAXCMD ] = "" ;
+ 	int	i ;
+ 
+ for( i = 0 ; args[ i ] != NULL ; i++ ){
+     strcat( cmd, args[ i ] ) ;
+     if( args[ i+1 ] != NULL )
+         strcat( cmd, " " ) ;
+     }
+ return system( cmd ) ;
+ }
+ 
+ int
+ main( int argc, char *argv[] )
+ {
+ 	char	**ftn_fils ;
+ 	char	**ftn_args ;
+ 	char	**fin_args ;
+ 	int	n_ftn_fils = 0 ;
+ 	int	n_ftn_args = 1 ;
+ 	int	n_fin_args = 1 ;
+ 	int	i ;
+ 
+ if( ( ftn_fils = calloc( sizeof( char * ), argc + 1 ) ) == NULL ||
+     ( ftn_args = calloc( sizeof( char * ), argc + 1 ) ) == NULL ||
+     ( fin_args = calloc( sizeof( char * ), argc + 1 ) ) == NULL ){
+     perror( "Out of memory in f77 driver!\n" ) ;
+     return EXIT_FAILURE ;
+     }
+ ftn_args[0] = F2C ;
+ fin_args[0] = GCC ;
+ for( i = 1 ; i < argc ; i++ ){
+          if( FortranFile( argv[i] ) ){
+             ftn_fils[ n_ftn_fils++ ] = argv[i] ;
+             fin_args[ n_fin_args++ ] = MakeCName( argv[i] ) ;
+             }
+     else if( FortranArg( argv[i] ) ){
+             ftn_args[ n_ftn_args++ ] = argv[i] ;
+             }
+     else if( CommonArg( argv[i] ) ){
+             ftn_args[ n_ftn_args++ ] = argv[i] ;
+             fin_args[ n_fin_args++ ] = argv[i] ;
+             }
+     else {
+             fin_args[ n_fin_args++ ] = argv[i] ;
+             }
+     }
+ for( i = 0 ; i < n_ftn_fils ; i++ ){
+     ftn_args[n_ftn_args] = ftn_fils[i] ;
+     if( RunCompiler( ftn_args ) != 0 ){
+         fprintf( stderr, "Intermediate compiling %s\n", ftn_fils[i] ) ;
+         return EXIT_FAILURE ;
+         }
+     }
+ return RunCompiler( fin_args ) ;
+ }
diff -cdN ../src.old//fdummy.f ./fdummy.f
*** ../src.old//fdummy.f
--- ./fdummy.f	Mon Jan 30 15:45:15 1995
***************
*** 0 ****
--- 1,20 ----
+       SUBROUTINE GREENF
+       WRITE(6,10000)
+       RETURN
+ 10000 FORMAT(//
+      .' ************************************************************'
+      .' *  GREEN FUNCTIONS I.P. CORRECTION IS NOT INCLUDED, SO     *'
+      .' *  GREENF WAS IGNORED                                      *'
+      .' ************************************************************'
+      .//)
+       END
+       SUBROUTINE ESP
+       WRITE(6,10000)
+       RETURN
+ 10000 FORMAT(//
+      .' ************************************************************'
+      .' *  ELECTROSTATIC POTENTIAL CODE NOT INCLUDED, SO           *'
+      .' *  ESP WAS IGNORED                                         *'
+      .' ************************************************************'
+      .//)
+       END
diff -cdN ../src.old//ffhpol.f ./ffhpol.f
*** ../src.old//ffhpol.f	Tue Apr 20 03:38:14 1993
--- ./ffhpol.f	Wed Jan 25 17:26:58 1995
***************
*** 14,20 ****
  C
  C***********************************************************************
        COMMON /CORE  / CORE(107)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM),NORS,NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 14,20 ----
  C
  C***********************************************************************
        COMMON /CORE  / CORE(107)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM),NORS,NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
***************
*** 41,47 ****
       1          DIPE4(3),APOLE4(6),BETAE4(9),GAMME4(6),
       2          DIPDP(3),APOLDP(6),BETADP(9),GAMMDP(6),
       3          DIP1P(3),DIP1M(3),DIP2P(3),DIP2M(3)
!       DIMENSION IPTBD(6)
        DATA IPTBD /5,7,4,9,6,8/
  C Energy: a.u. to kcal/mole
        AUTOKC = 23.061D+00*27.2107D+00
--- 41,47 ----
       1          DIPE4(3),APOLE4(6),BETAE4(9),GAMME4(6),
       2          DIPDP(3),APOLDP(6),BETADP(9),GAMMDP(6),
       3          DIP1P(3),DIP1M(3),DIP2P(3),DIP2M(3)
!       DIMENSION IPTBD(6), GRAD(MAXPAR)
        DATA IPTBD /5,7,4,9,6,8/
  C Energy: a.u. to kcal/mole
        AUTOKC = 23.061D+00*27.2107D+00
***************
*** 66,72 ****
        WRITE (6,10) EFVAL
     10 FORMAT (//' APPLIED ELECTRIC FIELD MAGNITUDE: ',F15.5)
        SFE = 1.D00/EFVAL
!       WRITE (6,20) 6.74834*ATPOL
     20 FORMAT (//' ATOMIC CONTRIBUTION TO THE POLARIZABILITY: ',F15.6,/,
       1          '  (IT IS ONLY APPLIED TO THE E4 RESULT)')
  C.......................................................................
--- 66,72 ----
        WRITE (6,10) EFVAL
     10 FORMAT (//' APPLIED ELECTRIC FIELD MAGNITUDE: ',F15.5)
        SFE = 1.D00/EFVAL
!       WRITE (6,20) 6.74834D0*ATPOL
     20 FORMAT (//' ATOMIC CONTRIBUTION TO THE POLARIZABILITY: ',F15.6,/,
       1          '  (IT IS ONLY APPLIED TO THE E4 RESULT)')
  C.......................................................................
***************
*** 140,146 ****
           IVL = (ID*(ID+1))/2
           ETERM = 2.5D00*HEAT0 - (4.D00/3.D00)*(HEAT1P + HEAT1M)
       1        + (1.D00/12.0D00)*(HEAT2P + HEAT2M)
!          APOLE4(IVL) = ETERM*SFE*SFE/AUTOKC + ATPOL*6.74834
  C
  C BETA
  C
--- 140,146 ----
           IVL = (ID*(ID+1))/2
           ETERM = 2.5D00*HEAT0 - (4.D00/3.D00)*(HEAT1P + HEAT1M)
       1        + (1.D00/12.0D00)*(HEAT2P + HEAT2M)
!          APOLE4(IVL) = ETERM*SFE*SFE/AUTOKC + ATPOL*6.74834D0
  C
  C BETA
  C
***************
*** 191,199 ****
           DO 140 JD = 1,IDM1
              HNUCJ = 0.0D00
              DO 90 I = 1,NUMAT
!                HNUCJ = HNUCJ + EFVAL*GEO(JD,I)*CORE(NAT(I))*51.4257
     90       CONTINUE
!             HNUCJ = HNUCJ*23.061
              DO 100 I = 1,3
                 EFIELD(I) = 0.0D00
    100       CONTINUE
--- 191,199 ----
           DO 140 JD = 1,IDM1
              HNUCJ = 0.0D00
              DO 90 I = 1,NUMAT
!                HNUCJ = HNUCJ + EFVAL*GEO(JD,I)*CORE(NAT(I))*51.4257D0
     90       CONTINUE
!             HNUCJ = HNUCJ*23.061D0
              DO 100 I = 1,3
                 EFIELD(I) = 0.0D00
    100       CONTINUE
diff -cdN ../src.old//flepo.f ./flepo.f
*** ../src.old//flepo.f	Tue Apr 20 03:38:14 1993
--- ./flepo.f	Tue Jan 17 12:25:46 1995
***************
*** 12,18 ****
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /MESAGE/ IFLEPO,ISCF
!       COMMON /TIME  / TIME0
        COMMON /FMATRX/ HESINV(MAXPAR**2+MAXPAR*3+1), IDUMY(4)
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON /TIMDMP/ TLEFT, TDUMP
--- 12,21 ----
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /MESAGE/ IFLEPO,ISCF
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /FMATRX/ HESINV(MAXPAR**2+MAXPAR*3+1), IDUMY(4)
        COMMON /SCFTYP/ EMIN, LIMSCF
        COMMON /TIMDMP/ TLEFT, TDUMP
***************
*** 141,147 ****
           IPRT  = 6
           TDEL  = 0.06D0
           NRST  = 30
!          SFACT = 1.5
           DELL  = 0.01D0
           EINC  = 0.3D0
           IGG1  = 3
--- 144,150 ----
           IPRT  = 6
           TDEL  = 0.06D0
           NRST  = 30
!          SFACT = 1.5D0
           DELL  = 0.01D0
           EINC  = 0.3D0
           IGG1  = 3
diff -cdN ../src.old//fmat.f ./fmat.f
*** ../src.old//fmat.f	Tue Apr 20 03:38:14 1993
--- ./fmat.f	Wed Jan 25 16:06:58 1995
***************
*** 1,7 ****
        SUBROUTINE FMAT(FMATRX, NREAL, TSCF, TDER, DELDIP, HEAT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120)
        DIMENSION FMATRX(*), DELDIP(3,*)
  ***********************************************************************
  *
--- 1,7 ----
        SUBROUTINE FMAT(FMATRX, NREAL, TSCF, TDER, DELDIP, HEAT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        DIMENSION FMATRX(*), DELDIP(3,*)
  ***********************************************************************
  *
***************
*** 27,33 ****
        COMMON /DENSTY/ P(MPACK),PDUMY(2,MPACK)
        COMMON /TIMDMP/ TLEFT, TDUMP
        COMMON /ATMASS/ ATMASS(NUMATM)
!       COMMON /TIME  / TIME0
        COMMON /CORE  / CORE(107)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 27,36 ----
        COMMON /DENSTY/ P(MPACK),PDUMY(2,MPACK)
        COMMON /TIMDMP/ TLEFT, TDUMP
        COMMON /ATMASS/ ATMASS(NUMATM)
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /CORE  / CORE(107)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
diff -cdN ../src.old//fock2.f ./fock2.f
*** ../src.old//fock2.f	Tue Apr 20 03:38:14 1993
--- ./fock2.f	Wed Jan 25 17:10:06 1995
***************
*** 3,9 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION F(*), PTOT(*), WJ(*), WK(*), NFIRST(*), NMIDLE(*),
!      1          NLAST(*), P(*), W(*)
        DOUBLE PRECISION WJ,WK
  C***********************************************************************
  C
--- 3,9 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION F(*), PTOT(*), WJ(*), WK(*), NFIRST(*), NMIDLE(*),
!      1          NLAST(*), P(*), W(*), NAT(*)
        DOUBLE PRECISION WJ,WK
  C***********************************************************************
  C
diff -cdN ../src.old//force.dat ./force.dat
*** ../src.old//force.dat
--- ./force.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,65 ----
+   FORCE
+       TEST FOR FORCE CALCULATION
+   ROOTS SHOULD BE WITHIN ONE CM**(-1) OF 1210, 1215, 1490, 2114, 3256, 3302.
+    H    0.000000  0    0.000000  0    0.000000  0    0    0    0      -0.0009
+    C    1.106143  1    0.000000  0    0.000000  0    1    0    0       0.2920
+    H    1.106078  1  113.047446  1    0.000000  0    2    1    0      -0.0008
+    O    1.216552  1  123.459523  1  180.002569  1    2    1    3      -0.2903
+    0    0.000000  0    0.000000  0    0.000000  0    0    0    0
+     T=3   FORCE NOINTER NOXYZ SYMMETRY                   
+    FORCE CALCULATION OF FORMALDEHYDE
+    HIGHEST FREQUENCY SHOULD BE 3303 CM(-1)
+    XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     H    1.000000  0    0.000000  0    0.000000  0   1  0  0      -0.0010
+     C    1.106004  1  180.000000  0    0.000000  0   2  1  0       0.2922
+     H    1.106004  0  112.940520  1  180.000000  0   3  2  1      -0.0010
+     O    1.216533  1  123.529882  1  180.000000  0   3  2  4      -0.2902
+    XX    0.970000  1  118.281126  1  180.000000  0   3  2  4
+     0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     3,   1,   4,
+  
+   t=1h   RESTART FORCE NOINTER NOXYZ SYMMETRY                   
+    FORCE CALCULATION OF FORMALDEHYDE
+    HIGHEST FREQUENCY SHOULD BE 3303 CM(-1)
+    XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     H    1.000000  0    0.000000  0    0.000000  0   1  0  0      -0.0010
+     C    1.106004  1  180.000000  0    0.000000  0   2  1  0       0.2922
+     H    1.106004  0  112.940520  1  180.000000  0   3  2  1      -0.0010
+     O    1.216533  1  123.529882  1  180.000000  0   3  2  4      -0.2902
+    XX    0.970000  1  118.281126  1  180.000000  0   3  2  4
+     0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     3,   1,   4,
+  
+     FORCE          ISOTOPE thermo(298,298) rot=5
+    FORCE CALCULATION ON ETHYL RADICAL (NON-VARIATIONAL)
+   HIGHEST FREQUENCY SHOULD BE 3450 +/- 1.0 CM(-1)
+     C    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     C    1.479146  1    0.000000  0    0.000000  0   1  0  0
+     H    1.109475  1  111.328433  1    0.000000  0   2  1  0
+     H    1.109470  1  111.753160  1  120.288410  1   2  1  3
+     H    1.109843  1  110.103163  1  240.205278  1   2  1  3
+     H    1.082055  1  121.214083  1   38.110989  1   1  2  3
+     H    1.081797  1  121.521232  1  217.450268  1   1  2  3
+     0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    T=40    FORCE          
+    FORCE CALCULATION ON ETHYL RADICAL (NON-VARIATIONAL)
+   HIGHEST FREQUENCY SHOULD BE 3450 +/- 1.0 CM(-1)
+     C    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     C    1.479146  1    0.000000  0    0.000000  0   1  0  0
+     H    1.109475  1  111.328433  1    0.000000  0   2  1  0
+     H    1.109470  1  111.753160  1  120.288410  1   2  1  3
+     H    1.109843  1  110.103163  1  240.205278  1   2  1  3
+     H    1.082055  1  121.214083  1   38.110989  1   1  2  3
+     H    1.081797  1  121.521232  1  217.450268  1   1  2  3
+     0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    t=1d  RESTART FORCE          
+    FORCE CALCULATION ON ETHYL RADICAL (NON-VARIATIONAL)
+   HIGHEST FREQUENCY SHOULD BE 3450 +/-1.0 CM(-1)
+     C    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     C    1.479146  1    0.000000  0    0.000000  0   1  0  0
+     H    1.109475  1  111.328433  1    0.000000  0   2  1  0
+     H    1.109470  1  111.753160  1  120.288410  1   2  1  3
+     H    1.109843  1  110.103163  1  240.205278  1   2  1  3
+     H    1.082055  1  121.214083  1   38.110989  1   1  2  3
+     H    1.081797  1  121.521232  1  217.450268  1   1  2  3
+     0    0.000000  0    0.000000  0    0.000000  0   0  0  0
diff -cdN ../src.old//force.f ./force.f
*** ../src.old//force.f	Tue Apr 20 03:38:14 1993
--- ./force.f	Wed Jan 25 16:06:44 1995
***************
*** 14,22 ****
        COMMON /ELEMTS/ ELEMNT(107)
        COMMON /LAST  / LAST
        COMMON /MESAGE/ IFLEPO,ISCF
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120)
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /COORD / COORD(3,NUMATM)
  ***********************************************************************
  *
--- 14,22 ----
        COMMON /ELEMTS/ ELEMNT(107)
        COMMON /LAST  / LAST
        COMMON /MESAGE/ IFLEPO,ISCF
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /COORD / COORD(3,NUMATM)
  ***********************************************************************
  *
diff -cdN ../src.old//freqcy.f ./freqcy.f
*** ../src.old//freqcy.f	Tue Apr 20 03:38:16 1993
--- ./freqcy.f	Wed Jan 25 17:22:27 1995
***************
*** 17,28 ****
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /NLLCOM/ FMAT2D(2*MAXPAR**2), VEC(MAXPAR**2)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120)
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /KEYWRD/ KEYWRD
        COMMON /SCRACH/ OLDF(MAXPAR**2)
        CHARACTER KEYWRD*241
        DIMENSION WTMASS(MAXPAR), SHIFT(6), SEC(MAXPAR**2)
        EQUIVALENCE (SEC,OLDF)
        SAVE FACT
        DATA FACT/6.023D23/
--- 17,32 ----
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /NLLCOM/ FMAT2D(2*MAXPAR**2), VEC(MAXPAR**2)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /KEYWRD/ KEYWRD
        COMMON /SCRACH/ OLDF(MAXPAR**2)
+       COMMON /WORK1 /  DUMMY1(NPULAY*4), DUMMY2(NPULAY*2), 
+      .                 DUMMY3(NPULAY*2), ALBAND(NPULAY*13)
+ 
        CHARACTER KEYWRD*241
        DIMENSION WTMASS(MAXPAR), SHIFT(6), SEC(MAXPAR**2)
+       COMPLEX SEC, VEC
        EQUIVALENCE (SEC,OLDF)
        SAVE FACT
        DATA FACT/6.023D23/
diff -cdN ../src.old//geometry.dat ./geometry.dat
*** ../src.old//geometry.dat
--- ./geometry.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,232 ----
+   SYMMETRY  geo-ok ef
+    GEOMETRY OPTIMIZATION OF C2H4 USING EIGENVECTOR FOLLOWING
+           FINAL HEAT OF FORMATION SHOULD BE 15.405 KCAL USING 9 SCF'S
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    0.700000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+ 
+  GEOMETRY OPTIMIZATION OF CH3 USING DFP (NON-VARIATIONALLY OPTIMIZED)
+                 HEAT OF FORMATION SHOULD BE 25.796
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    H    1.000000  1    0.000000  0    0.000000  0   0  0  0
+    H    1.400000  1  110.000000  1    0.000000  0   1  2  0
+    H    1.200000  1  120.000000  0  180.000000  0   1  2  3
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+     NLLSQ  SYMMETRY  DUMP=6
+    GRADIENT MINIMIZATION OF C2H4 USING NLLSQ
+           FINAL HEAT OF FORMATION SHOULD BE 15.405 KCAL IN 24 SCF'S
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+  PRECISE SYMMETRY                   
+   REACTION PATH, C=O STRETCH
+  HEAT OF FORMATION SHOULD BE -32.88, -32.87, -32.65, -32.18, -30.56, -28.12
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    H    1.000000  0    0.000000  0    0.000000  0   1  0  0      -0.0010
+    C    1.106004  1  180.000000  0    0.000000  0   2  1  0       0.2922
+    H    1.106004  0  112.940520  1  180.000000  0   3  2  1      -0.0010
+    O    1.216533 -1  123.529882  1  180.000000  0   3  2  4      -0.2902
+   XX    0.970000  1  118.281126  1  180.000000  0   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+ 
+ 1.22 1.23 1.24 1.26 1.28
+ 
+  BAR=0.05  SADDLE    
+    SADDLE CALCULATION, CH2O - HCOH                                               
+ FINAL HEAT OF FORMATION SHOULD BE MORE THAN 75 KCAL/MOL
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    O    1.008000  1    0.000000  0    0.000000  0   1  0  0      -0.2904
+    C    1.217034  1   97.664390  1    0.000000  0   2  1  0       0.2921
+    H    1.105388  1  123.492803  1    0.000000  1   3  2  1      -0.0008
+    H    1.305403  1   80.509198  1  180.014148  1   3  2  1      -0.0008
+   XX    0.958000  1  117.593577  1  180.000000  1   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    O    1.008000  1    0.000000  0    0.000000  0   1  0  0      -0.2115
+    C    1.299808  1  107.868467  1    0.000000  0   2  1  0       0.0071
+    H    1.109933  1  111.309147  1    0.000000  1   3  2  1      -0.0137
+    H    1.886033  1   27.738198  1  180.000000  1   3  2  1       0.2181
+   XX    0.958000  1  117.593577  1  180.000000  1   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+  XYZ  BAR=0.2 SADDLE                                                                                 
+    SADDLE CALCULATION, CH2O - HCOH                                               
+                 Heat of formation should be 75.7 Kcal/mol, gradient: < 10.
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    O    1.008000  1    0.000000  0    0.000000  0   1  0  0      -0.2904
+    C    1.217034  1   97.664390  1    0.000000  0   2  1  0       0.2921
+    H    1.105388  1  123.492803  1    0.000000  1   3  2  1      -0.0008
+    H    1.305403  1  100.509198  1  180.014148  1   3  2  1      -0.0008
+   XX    0.958000  1  117.593577  1  180.000000  1   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    O    1.008000  1    0.000000  0    0.000000  0   1  0  0      -0.2115
+    C    1.299808  1  107.868467  1    0.000000  0   2  1  0       0.0071
+    H    1.109933  1  111.309147  1    0.000000  1   3  2  1      -0.0137
+    H    1.886033  1   27.738198  1  180.000000  1   3  2  1       0.2181
+   XX    0.938000  1  116.447661  1  180.000000  1   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+  PRECISE SYMMETRY  POINT=6 STEP=0.01
+   REACTION PATH, C=O STRETCH
+  HEAT OF FORMATION SHOULD BE -32.83, -32.87, -32.65, -32.18, -31.48, -30.56
+   XX    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    H    1.000000  0    0.000000  0    0.000000  0   1  0  0      -0.0010
+    C    1.106004  1  180.000000  0    0.000000  0   2  1  0       0.2922
+    H    1.106004  0  112.940520  1  180.000000  0   3  2  1      -0.0010
+    O    1.21     -1  123.529882  1  180.000000  0   3  2  4      -0.2902
+   XX    0.970000  1  118.281126  1  180.000000  0   3  2  4
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+ 
+  SYMMETRY  STEP1=0.02 STEP2=1.0 POINT1=10 POINT2=11
+   REACTION PATH, C=O STRETCH
+  
+ O
+ C 1.2  1
+ H 0.9 -1 117 -1
+ H 0.9  0 130  0 180 0 2 1 3
+ 
+ 3 1 4
+ 3 2 4
+ 
+    T=0.7     SYMMETRY                           
+    GEOMETRY OPTIMIZATION OF C2H4 USING DFP
+ 
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+   t=1h   RESTART SYMMETRY                           
+    GEOMETRY OPTIMIZATION OF C2H4 USING DFP
+           FINAL HEAT OF FORMATION SHOULD BE 15.405 KCAL IN 8 SCF'S
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+    T=3    NLLSQ  SYMMETRY                           
+    GRADIENT MINIMIZATION OF C2H4 USING NLLSQ
+ 
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+   t=1d   RESTART  NLLSQ  SYMMETRY                           
+    GRADIENT MINIMIZATION OF C2H4 USING NLLSQ
+           FINAL HEAT OF FORMATION SHOULD BE 15.405 KCAL
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+    T=1.5    SIGMA SYMMETRY                           
+    GRADIENT MINIMIZATION OF C2H4 USING SIGMA, DONE WITH RESTARTS
+   (SHOULD TAKE ABOUT 12 SCF CALCULATIONS)
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+    RESTART SIGMA SYMMETRY t=60m                          
+    GRADIENT MINIMIZATION OF C2H4 USING SIGMA, DONE WITH RESTARTS
+           FINAL HEAT OF FORMATION SHOULD BE 15.405 KCAL 13 SCF CALC'NS
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0920
+    C    1.300000  1    0.000000  0    0.000000  0   1  0  0      -0.0930
+    H    1.100000  1  120.000000  1    0.000000  0   2  1  0       0.0462
+    H    1.100000  0  120.000000  0  180.000000  0   2  1  3       0.0462
+    H    1.100000  0  120.000000  0    0.000000  0   1  2  3       0.0461
+    H    1.100000  0  120.000000  0  180.000000  0   1  2  3       0.0465
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    3,   1,   4,
+    3,   1,   5,
+    3,   1,   6,
+    3,   2,   4,
+    3,   2,   5,
+    3,   2,   6,
+ 
+   IRC=1 DRC=3.0 T=30  KINETIC=10
+   DRC/IRC STARTING FROM INITIAL GEOMETRY  
+                                                                                  
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0902
+    H    1.078283  1    0.000000  0    0.000000  0   1  0  0       0.0302
+    H    1.078224  1  120.066593  1    0.000000  0   1  2  0       0.0301
+    H    1.078207  1  120.000000  0  180.000000  0   1  2  3       0.0300
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+   RESTART DRC=3 T=10
+   DRC/IRC STARTING FROM INITIAL GEOMETRY  
+                                                                                  
+    C    0.000000  0    0.000000  0    0.000000  0   0  0  0      -0.0902
+    H    1.078283  1    0.000000  0    0.000000  0   1  0  0       0.0302
+    H    1.078224  1  120.066593  1    0.000000  0   1  2  0       0.0301
+    H    1.078207  1  120.000000  0  180.000000  0   1  2  3       0.0300
+    0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+ 
diff -cdN ../src.old//geout.f ./geout.f
*** ../src.old//geout.f	Tue Apr 20 03:38:16 1993
--- ./geout.f	Tue Jan 17 15:32:32 1995
***************
*** 7,13 ****
  *         FROM ANY POINT IN THE PROGRAM AND DOES NOT AFFECT ANYTHING.
  *
  **********************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR),IDUMY,XPARAM(MAXPAR)
--- 7,13 ----
  *         FROM ANY POINT IN THE PROGRAM AND DOES NOT AFFECT ANYTHING.
  *
  **********************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR),IDUMY,XPARAM(MAXPAR)
diff -cdN ../src.old//geoutg.f ./geoutg.f
*** ../src.old//geoutg.f	Tue Apr 20 03:38:16 1993
--- ./geoutg.f	Tue Jan 17 15:32:27 1995
***************
*** 7,13 ****
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM)
  ************************************************************************
  *
  *   GEOUTG WRITES OUT THE GEOMETRY IN GAUSSIAN-8X STYLE
--- 7,13 ----
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
  ************************************************************************
  *
  *   GEOUTG WRITES OUT THE GEOMETRY IN GAUSSIAN-8X STYLE
diff -cdN ../src.old//getgeo.f ./getgeo.f
*** ../src.old//getgeo.f	Tue Apr 20 03:38:16 1993
--- ./getgeo.f	Thu Jan 26 09:53:40 1995
***************
*** 27,33 ****
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
        COMMON /KEYWRD/ KEYWRD
!       DIMENSION ISTART(40), XYZ(3,NUMATM), VALUE(4)
        LOGICAL LEADSP, IRCDRC
        CHARACTER KEYWRD*241, TXTATM*8, SIMBOL*10, LTXT*1
        CHARACTER ELEMNT(107)*2, LINE*80, SPACE*1, NINE*1,ZERO*1,
--- 27,33 ----
        COMMON /ATMASS/ ATMASS(NUMATM)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
        COMMON /KEYWRD/ KEYWRD
!       DIMENSION ISTART(40), XYZ(3,NUMATM), VALUE(40)
        LOGICAL LEADSP, IRCDRC
        CHARACTER KEYWRD*241, TXTATM*8, SIMBOL*10, LTXT*1
        CHARACTER ELEMNT(107)*2, LINE*80, SPACE*1, NINE*1,ZERO*1,
diff -cdN ../src.old//gover.f ./gover.f
*** ../src.old//gover.f	Tue Apr 20 03:38:16 1993
--- ./gover.f	Tue Jan 17 15:01:13 1995
***************
*** 79,92 ****
                    IF((ADB*R).LT.90.D0) THEN
                       ABN=1.0D0
                       GO TO(50,10,20,30),IS
!    10                ABN=2.*TOMB*Z(I,K)*SQRT(Z(J,L))/AMB
                       GO TO 50
!    20                ABN=-2.*TOMB*Z(J,L)*SQRT(Z(I,K))/AMB
                       GO TO 50
     30                ABN=-ADB*TOMB
                       IF(NAT.EQ.NBT) ABN=ABN+0.5D0
     40                ABN=4.0D0*ABN*SQRT(APB)/AMB
!    50                S(K,L)=SQRT((2.*SQRT(APB)/AMB)**3)*EXP(-ADB*R)*ABN
                    ENDIF
     60       CONTINUE
              SG(KA,KB)=0.0D0
--- 79,93 ----
                    IF((ADB*R).LT.90.D0) THEN
                       ABN=1.0D0
                       GO TO(50,10,20,30),IS
!    10                ABN=2.D0*TOMB*Z(I,K)*SQRT(Z(J,L))/AMB
                       GO TO 50
!    20                ABN=-2.D0*TOMB*Z(J,L)*SQRT(Z(I,K))/AMB
                       GO TO 50
     30                ABN=-ADB*TOMB
                       IF(NAT.EQ.NBT) ABN=ABN+0.5D0
     40                ABN=4.0D0*ABN*SQRT(APB)/AMB
!    50                S(K,L)=SQRT((2.D0*SQRT(APB)/AMB)**3)*EXP(-ADB*R)*
!      .                      ABN
                    ENDIF
     60       CONTINUE
              SG(KA,KB)=0.0D0
diff -cdN ../src.old//greenf.f ./greenf.f
*** ../src.old//greenf.f	Tue Apr 20 03:38:16 1993
--- ./greenf.f	Mon Jan 30 15:39:10 1995
***************
*** 12,17 ****
--- 12,18 ----
        COMMON/DOD1/NMUX,LM6,LM7
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6))
+ *
        IW=6
        WRITE(IW,10)
     10 FORMAT(///)
***************
*** 105,111 ****
       * NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,NCLOSE,NOPEN,
       * NDUMY,FRACT
        CHARACTER LINE*80
!       DIMENSION VALUE(3)
        NRA=6
        NAMB=NORBS-NCLOSE
        READ(5,'(A)') LINE
--- 106,112 ----
       * NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,NCLOSE,NOPEN,
       * NDUMY,FRACT
        CHARACTER LINE*80
!       DIMENSION VALUE(40)
        NRA=6
        NAMB=NORBS-NCLOSE
        READ(5,'(A)') LINE
***************
*** 149,156 ****
        COMMON/WMATRX/W(N2ELEC),WK(N2ELEC)
        COMMON/CIPARM/ICI1,ICI2,IOUT2
        COMMON/DOD1/NMUX,LM6,LM7
!       PARAMETER (IGREEN=600000)
!       COMMON/FMCOM/X(600000)
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6))
        IF(MEMORY.GT.IGREEN)THEN
--- 150,156 ----
        COMMON/WMATRX/W(N2ELEC),WK(N2ELEC)
        COMMON/CIPARM/ICI1,ICI2,IOUT2
        COMMON/DOD1/NMUX,LM6,LM7
!       COMMON/FMCOM/X(IGREEN)
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6))
        IF(MEMORY.GT.IGREEN)THEN
***************
*** 657,663 ****
                       GO TO 170
    190                AS1=AS1+(2.D0*P(NUMB)-P(NUMB1))*
       1(2.D0*P(NUMB2)-P(NUMB3))*P(NUMB4)/
!      2((EIG(J)+EIG(I)-EIG(M)-EIG(N))*(EIG(K)+EIG(I)-EIG(M2)-EIG(N)))
    200 CONTINUE
        AS1=-AS1
        DO 400 M=KYR1,KYR2
--- 657,663 ----
                       GO TO 170
    190                AS1=AS1+(2.D0*P(NUMB)-P(NUMB1))*
       1(2.D0*P(NUMB2)-P(NUMB3))*P(NUMB4)/
!      2((EIG(J)+EIG(I)-EIG(M)-EIG(N))*(EIG(K)+EIG(I)-EIG(M)-EIG(N)))
    200 CONTINUE
        AS1=-AS1
        DO 400 M=KYR1,KYR2
***************
*** 948,954 ****
  C=================================================================
  C
        SUBROUTINE CSUM(P,NDIS,EP)
!       IMPLICIT REAL*8(A-H,O-Z)
  ************************************************************
  *  CALCULATION 'CI' VALUES FOR GREEN'S FUNCTION METHOD     *
  *  SUBROUTINE WRITTEN BY DR. DAVID DANOVICH, DEPARTMENT OF *
--- 948,954 ----
  C=================================================================
  C
        SUBROUTINE CSUM(P,NDIS,EP)
!       IMPLICIT DOUBLE PRECISION (A-H,O-Z)
  ************************************************************
  *  CALCULATION 'CI' VALUES FOR GREEN'S FUNCTION METHOD     *
  *  SUBROUTINE WRITTEN BY DR. DAVID DANOVICH, DEPARTMENT OF *
***************
*** 958,964 ****
        INCLUDE 'SIZES'
        DIMENSION P(*)
        COMMON/DOD/ITL(200),IT(200)
!       COMMON/VECTOR/C(MORB2),EIG(MAXORB)
        COMMON/PEREM/NYR,IY,IGGV,IGGW
        COMMON/CSUC/CS1,CS2,CS3,CS4,CS5,CS6
        KYR2=NYR+IGGV
--- 958,964 ----
        INCLUDE 'SIZES'
        DIMENSION P(*)
        COMMON/DOD/ITL(200),IT(200)
!       COMMON/VECTOR/C(MORB2),EIG(MAXORB),CBETA(MORB2),EIGBET(MAXORB)
        COMMON/PEREM/NYR,IY,IGGV,IGGW
        COMMON/CSUC/CS1,CS2,CS3,CS4,CS5,CS6
        KYR2=NYR+IGGV
***************
*** 1979,1985 ****
        COMMON/DSMD/DS1,DS2,DS3,DS4,DS5,DS6
        COMMON/SUMA/SU2R,EPS,SUM1,SUM2
        COMMON/VECTOR/C(MORB2),EIG(MAXORB),CBETA(MORB2),EIGB(MAXORB)
!       DIMENSION VALUE(10)
        CHARACTER LINE*80
        WRITE(6,1) INTSO,NORBS
     1  FORMAT(//5X,'number of nonzero integrals =',I10,5X,
--- 1979,1985 ----
        COMMON/DSMD/DS1,DS2,DS3,DS4,DS5,DS6
        COMMON/SUMA/SU2R,EPS,SUM1,SUM2
        COMMON/VECTOR/C(MORB2),EIG(MAXORB),CBETA(MORB2),EIGB(MAXORB)
!       DIMENSION VALUE(40)
        CHARACTER LINE*80
        WRITE(6,1) INTSO,NORBS
     1  FORMAT(//5X,'number of nonzero integrals =',I10,5X,
diff -cdN ../src.old//grid.f ./grid.f
*** ../src.old//grid.f	Tue Apr 20 03:38:16 1993
--- ./grid.f	Tue Jan 17 15:32:21 1995
***************
*** 24,30 ****
  *       6. Write out UNIMAP irregular data UMP.DAT
  *
  ************************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /GRAVEC/ COSINE
--- 24,30 ----
  *       6. Write out UNIMAP irregular data UMP.DAT
  *
  ************************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /GRAVEC/ COSINE
***************
*** 104,111 ****
  C   THESE PARAMETERS NEED TO BE DUMPED IN '.RES'
        CURRT1=START1
        CURRT2=START2
!       IONE=-1.D0
!       CPUTOT=0.0
        IJLP=0
        ILP=1
        JLP=1
--- 104,111 ----
  C   THESE PARAMETERS NEED TO BE DUMPED IN '.RES'
        CURRT1=START1
        CURRT2=START2
!       IONE=-1
!       CPUTOT=0.0D0
        IJLP=0
        ILP=1
        JLP=1
***************
*** 170,176 ****
        WRITE(12,'(/'' TOTAL CPU TIME IN FLEPO : '',F10.3/)') CPUTOT
  C
  C  WRITE OUT THE GRIDS
!       IONE=1.D0
        ILOOP=1
        JLOOP1=1
        DO 50 IJ=1,NPTS1*NPTS2
--- 170,176 ----
        WRITE(12,'(/'' TOTAL CPU TIME IN FLEPO : '',F10.3/)') CPUTOT
  C
  C  WRITE OUT THE GRIDS
!       IONE=1
        ILOOP=1
        JLOOP1=1
        DO 50 IJ=1,NPTS1*NPTS2
diff -cdN ../src.old//hqrii.f ./hqrii.f
*** ../src.old//hqrii.f	Tue Apr 20 03:38:16 1993
--- ./hqrii.f	Tue Jan 17 12:30:38 1995
***************
*** 44,50 ****
           KP1=K+1
           KRANK=KRANK+K
           W(2,K)=A(KRANK)
!          SUM=0.
           JRANK=KRANK
           DO 10 J=KP1,N
              W(2,J)=A(JRANK+K)
--- 44,50 ----
           KP1=K+1
           KRANK=KRANK+K
           W(2,K)=A(KRANK)
!          SUM=0.D0
           JRANK=KRANK
           DO 10 J=KP1,N
              W(2,J)=A(JRANK+K)
diff -cdN ../src.old//initsv.f ./initsv.f
*** ../src.old//initsv.f	Tue Apr 20 03:38:16 1993
--- ./initsv.f	Mon Jan 30 16:31:03 1995
***************
*** 5,11 ****
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 5,11 ----
       1                COSURF(3,LENABC), SRAD(NUMATM),ABCMAT(LENAB2),
       2                TM(3,3,NUMATM),QDEN(MAXDEN),DIRTM(3,NPPA),
       3                BH(LENABC)
!      4       /SOLVI/  IATSP(LENABC+1),NAR(LENABC), NNX(2,NUMATM)
        COMMON /DIRVEC/ DIRVEC(3,NPPA), NN(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 37,42 ****
--- 37,43 ----
        EPSI=READA(KEYWRD,INDEPS)
        FEPSI=(EPSI-1.D0)/(EPSI+0.5D0)
        NPS=0
+       IW=6
        NDEN=3*NORBS-2*NUMAT
        MAXNPS=SQRT(2*LENAB2+0.251)-NDEN-0.5
        MAXNPS=MIN(MAXNPS,LENABC)
***************
*** 45,51 ****
           WRITE(IW,*) 'PARAMETER LENABC IS TOO SMALL FOR THIS SYSTEM'
           STOP 'PARAMETER LENABC IS TOO SMALL FOR THIS SYSTEM'
        ENDIF
!       RSOLV=1.
        INRSOL=INDEX(KEYWRD,'RSOLV=')
        IF (INRSOL .NE. 0) THEN
           RSOLV=READA(KEYWRD,INRSOL)
--- 46,52 ----
           WRITE(IW,*) 'PARAMETER LENABC IS TOO SMALL FOR THIS SYSTEM'
           STOP 'PARAMETER LENABC IS TOO SMALL FOR THIS SYSTEM'
        ENDIF
!       RSOLV=1.D0
        INRSOL=INDEX(KEYWRD,'RSOLV=')
        IF (INRSOL .NE. 0) THEN
           RSOLV=READA(KEYWRD,INRSOL)
diff -cdN ../src.old//interp.f ./interp.f
*** ../src.old//interp.f	Tue Apr 20 03:38:16 1993
--- ./interp.f	Tue Jan 17 15:03:00 1995
***************
*** 81,87 ****
           DO 90 J=1,N
     90 VEC(I,J)=CP(I,J)
        EOLD=E
!       XOLD=1.0
        MODE=2
        RETURN
  C
--- 81,87 ----
           DO 90 J=1,N
     90 VEC(I,J)=CP(I,J)
        EOLD=E
!       XOLD=1.0D0
        MODE=2
        RETURN
  C
***************
*** 286,292 ****
        DO 550 K=1,MINPQ
           CK=COS(XNOW*THETA(K))
           SK=SIN(XNOW*THETA(K))
!          IF(DEBUG)WRITE(6,'('' ROTATION ANGLE:'',F12.4)')SK*57.29578
           DO 540 I=1,N
              CP(I,K)   =CK*VEC(I,K)-SK*VEC(I,NP+K)
    540    CP(I,NP+K)=SK*VEC(I,K)+CK*VEC(I,NP+K)
--- 286,292 ----
        DO 550 K=1,MINPQ
           CK=COS(XNOW*THETA(K))
           SK=SIN(XNOW*THETA(K))
!          IF(DEBUG)WRITE(6,'('' ROTATION ANGLE:'',F12.4)')SK*57.29578D0
           DO 540 I=1,N
              CP(I,K)   =CK*VEC(I,K)-SK*VEC(I,NP+K)
    540    CP(I,NP+K)=SK*VEC(I,K)+CK*VEC(I,NP+K)
***************
*** 305,311 ****
    580 ROLD=XOLD*THETA(1)*57.29578D0
        RNOW=XNOW*THETA(1)*57.29578D0
        RMIN=XMIN*THETA(1)*57.29578D0
!       IF(DEBUG)WRITE(6,600) XOLD,EOLD*23.061,DEOLD,ROLD
       1,             XNOW,ENOW*23.061D0,DENOW,RNOW
       2,             XMIN,EMIN*23.061D0,DEMIN,RMIN
        EOLD=ENOW
--- 305,311 ----
    580 ROLD=XOLD*THETA(1)*57.29578D0
        RNOW=XNOW*THETA(1)*57.29578D0
        RMIN=XMIN*THETA(1)*57.29578D0
!       IF(DEBUG)WRITE(6,600) XOLD,EOLD*23.061D0,DEOLD,ROLD
       1,             XNOW,ENOW*23.061D0,DENOW,RNOW
       2,             XMIN,EMIN*23.061D0,DEMIN,RMIN
        EOLD=ENOW
***************
*** 388,394 ****
  C     SKIP INTERVAL IF PNTS ARE TOO CLOSE TOGETHER
  C
           IF(DX.LE.CLOSE) GO TO 110
!          X1=0.0
           IF(K.EQ.1) X1=XSTART-X(1)
           X2=DX
           IF(K.EQ.N1) X2=XSTOP-X(N1)
--- 388,394 ----
  C     SKIP INTERVAL IF PNTS ARE TOO CLOSE TOGETHER
  C
           IF(DX.LE.CLOSE) GO TO 110
!          X1=0.0D0
           IF(K.EQ.1) X1=XSTART-X(1)
           X2=DX
           IF(K.EQ.N1) X2=XSTOP-X(N1)
***************
*** 419,425 ****
  C     CUBIC IS DOMINATED BY QUADRATIC TERM
  C
     60    R=AC3/BB
!          XK=-(((0.039063*R+0.0625)*R+0.125)*R+0.5)*C/B
     70    IF(XK.LT.X1.OR.XK.GT.X2) GO TO 90
     80    FM=((A*XK+B)*XK+C)*XK+F(K)
           IF(FM.GT.FMIN) GO TO 90
--- 419,425 ----
  C     CUBIC IS DOMINATED BY QUADRATIC TERM
  C
     60    R=AC3/BB
!          XK=-(((0.039063D0*R+0.0625D0)*R+0.125D0)*R+0.5D0)*C/B
     70    IF(XK.LT.X1.OR.XK.GT.X2) GO TO 90
     80    FM=((A*XK+B)*XK+C)*XK+F(K)
           IF(FM.GT.FMIN) GO TO 90
***************
*** 717,723 ****
  *
  *
  ************************************************************************
!       D=1.0
        NK=-N
        DO 180 K=1,N
           NK=NK+N
--- 717,723 ----
  *
  *
  ************************************************************************
!       D=1.0D0
        NK=-N
        DO 180 K=1,N
           NK=NK+N
***************
*** 756,762 ****
              A(JK)=A(JI)
     70    A(JI)=HOLO
     80    IF (ABS(BIGA)-TOL) 90,100,100
!    90    D=0.0
           RETURN
    100    DO 120 I=1,N
              IF (I-K) 110,120,110
--- 756,762 ----
              A(JK)=A(JI)
     70    A(JI)=HOLO
     80    IF (ABS(BIGA)-TOL) 90,100,100
!    90    D=0.0D0
           RETURN
    100    DO 120 I=1,N
              IF (I-K) 110,120,110
***************
*** 780,786 ****
    160       A(KJ)=A(KJ)/BIGA
    170    CONTINUE
           D=MIN(D*BIGA,1.D10)
!          A(KK)=1.0/BIGA
    180 CONTINUE
        K=N
    190 K=K-1
--- 780,786 ----
    160       A(KJ)=A(KJ)/BIGA
    170    CONTINUE
           D=MIN(D*BIGA,1.D10)
!          A(KK)=1.0D0/BIGA
    180 CONTINUE
        K=N
    190 K=K-1
diff -cdN ../src.old//iter.f ./iter.f
*** ../src.old//iter.f	Tue Apr 20 03:38:16 1993
--- ./iter.f	Tue Jan 17 12:33:48 1995
***************
*** 15,21 ****
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /NUMCAL/ NUMCAL
        COMMON /SCFTYP/ EMIN, LIMSCF
!       COMMON /TIME  / TIME0
        LOGICAL FULSCF, RAND, LIMSCF
        DOUBLE PRECISION WJ, WK
  C***********************************************************************
--- 15,24 ----
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /NUMCAL/ NUMCAL
        COMMON /SCFTYP/ EMIN, LIMSCF
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        LOGICAL FULSCF, RAND, LIMSCF
        DOUBLE PRECISION WJ, WK
  C***********************************************************************
***************
*** 466,472 ****
    170          FB(L)=H(L)+SHIFTB*PB(L)
    180       FB(L)=FB(L)-SHIFTB
           ELSEIF (RAND.AND.LAST.EQ.0.AND.NITER.LT.2.AND.FULSCF)THEN
!             RANDOM=0.001
              DO 190 I=1,LINEAR
                 RANDOM=-RANDOM
    190       FB(I)=H(I)+RANDOM
--- 469,475 ----
    170          FB(L)=H(L)+SHIFTB*PB(L)
    180       FB(L)=FB(L)-SHIFTB
           ELSEIF (RAND.AND.LAST.EQ.0.AND.NITER.LT.2.AND.FULSCF)THEN
!             RANDOM=0.001D0
              DO 190 I=1,LINEAR
                 RANDOM=-RANDOM
    190       FB(I)=H(I)+RANDOM
***************
*** 632,638 ****
       1    WRITE(6,'('' ITERATION'',I3,'' PLS='',2E10.3,'' ENERGY  '',
       2F14.7,'' DELTAE'',F13.7)')NITER,PL,PLB,ESCF,DIFF
        close (6)
!        OPEN(UNIT=6,FILE=GETNAM('FOR006'),ACCESS='APPEND')
        ENDIF
        IF(INCITR)EOLD=ESCF
  ************************************************************************
--- 635,647 ----
       1    WRITE(6,'('' ITERATION'',I3,'' PLS='',2E10.3,'' ENERGY  '',
       2F14.7,'' DELTAE'',F13.7)')NITER,PL,PLB,ESCF,DIFF
        close (6)
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C      OPEN(UNIT=6,FILE=GETNAM('FOR006'),ACCESS='APPEND')
!       OPEN(UNIT=6,FILE=GETNAM('FOR006'))
!  9990 read (6,'()',end=9999)
!          goto 9990
!  9999 continue
! C ***************************** at 1994-05-25 *****
        ENDIF
        IF(INCITR)EOLD=ESCF
  ************************************************************************
***************
*** 834,840 ****
  C#        CALL TIMER('AFTER MECI')
              EE=EE+SUM
              IF(PRTPL)THEN
!                ESCF=(EE+ENUCLR)*23.061 +ATHEAT
                 WRITE(6,'(27X,''AFTER MECI, ENERGY  '',F14.7)')ESCF
              ENDIF
           ENDIF
--- 843,849 ----
  C#        CALL TIMER('AFTER MECI')
              EE=EE+SUM
              IF(PRTPL)THEN
!                ESCF=(EE+ENUCLR)*23.061D0+ATHEAT
                 WRITE(6,'(27X,''AFTER MECI, ENERGY  '',F14.7)')ESCF
              ENDIF
           ENDIF
diff -cdN ../src.old//jcarin.f ./jcarin.f
*** ../src.old//jcarin.f	Tue Apr 20 03:38:16 1993
--- ./jcarin.f	Tue Jan 17 15:32:14 1995
***************
*** 18,24 ****
       3       /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, YPARAM(MAXPAR)
       4       /EULER / TVEC(3,3),ID
       5       /UCELL / L1L,L2L,L3L,L1U,L2U,L3U
!      6       /GEOM  / GEO(3,NUMATM)
        DIMENSION COORD(3,*),XPARAM(*),B(NVAR,*), COOLD(3,NUMATM*27)
        LOGICAL PRECI
  C
--- 18,24 ----
       3       /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, YPARAM(MAXPAR)
       4       /EULER / TVEC(3,3),ID
       5       /UCELL / L1L,L2L,L3L,L1U,L2U,L3U
!      6       /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        DIMENSION COORD(3,*),XPARAM(*),B(NVAR,*), COOLD(3,NUMATM*27)
        LOGICAL PRECI
  C
diff -cdN ../src.old//keys.dat ./keys.dat
*** ../src.old//keys.dat
--- ./keys.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,50 ----
+  1SCF  C.I.=2 MECI LARGE VECTORS DENSITY & HCORE FOCK ENPART  ITRY=40 
+  MULLIK LOCAL PI BONDS 1electron DEBUG GRADIENTS COMPFG denout
+    CALCULATED HEAT OF FORMATION SHOULD BE = -32.995 KCAL
+   XX    0.000000  0    0.000000  0    0.000000  0    0    0    0
+    H    1.000000  0    0.000000  0    0.000000  0    1    0    0      -0.0009
+    C    1.106060  1  180.000000  0  180.000000  0    2    1    0       0.2921
+    H    1.106071  1  112.948031  1  180.000000  0    3    2    1      -0.0010
+    O    1.216607  1  123.532498  1  180.000000  0    3    2    4      -0.2902
+   XX    0.978174  1  118.749470  1  180.000000  0    3    2    4
+    0    0.000000  0    0.000000  0    0.000000  0    0    0    0
+   1SCF T=23M GRADIENTS MOLDAT PL EIGS ITER TIMES C.I.=3 MECI VECTORS ENPART +
+      setup=mnrsk3.key  DEBUG large
+       1SCF - TEST MNDO CALCULATION OF FORMALDEHYDE +large
+    CALCULATED HEAT OF FORMATION SHOULD BE = -39.819 KCAL
+    H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.0033
+    C    1.1038875  1      0.000000  0      0.000000  0    1    0    0      0.2397
+    H    1.1038853  1    113.887246  1      0.000000  0    2    1    0      0.0033
+    O    1.2268927  1    123.055522  1   -179.999565  1    2    1    3     -0.2463
+  
+  SPIN LOCAL ENPART UHF TRIPLET
+       1SCF - UHF TRIPLET TEST MNDO CALCULATION OF FORMALDEHYDE
+     CALCULATED HEAT OF FORMATION SHOULD BE = 15.712
+   XX    0.000000  0    0.000000  0    0.000000  0    0    0    0
+    H    1.000000  0    0.000000  0    0.000000  0    1    0    0       0.1199
+    C    1.087803  1  180.000000  0  180.000000  0    2    1    0      -0.1975
+    H    1.086619  1  121.677600  1 -179.315636  1    3    2    1       0.1190
+    O    1.298843  1  119.396428  1  177.755070  1    3    2    4      -0.0413
+   XX    0.960000  1  117.708168  1  179.427042  1    3    2    4
+    0    0.000000  0    0.000000  0    0.000000  0    0    0    0
+    0scf aigout symmetry
+   Formaldehyde                             
+    Verify that Gaussian Z-matrix is correct in the output
+    o
+    c 1.2 1
+    h 1.1 1 120 1
+    h 1.1 0 120 0 180 0 2 1 3
+  
+    3 1 4
+    3 2 4
+  
+   POLAR DEBUG ANALYT GNORM=0.02 T=30M LINMIN EXTERNAL=PARAS.DAT PM3 &
+      graph search dep 
+  External param's turn PM3 into AM1 HEAT:  -31.4977
+   XX    0.000000  0    0.000000  0    0.000000  0    0    0    0
+    H    1.000000  0    0.000000  0    0.000000  0    1    0    0      -0.0011
+    C    1.106118  1  180.000000  0  180.000000  0    2    1    0       0.2923
+    H    1.106135  1  112.894927  1  180.000000  0    3    2    1      -0.0011
+    O    1.216395  1  123.560741  1  180.000000  0    3    2    4      -0.2901
+   XX    2.166435  0  150.770198  0    0.000000  0    3    2    4
+    0    0.000000  0    0.000000  0    0.000000  0    0    0    0
diff -cdN ../src.old//labels.log ./labels.log
*** ../src.old//labels.log	Fri Apr  2 01:57:32 1993
--- ./labels.log
***************
*** 1,37 ****
- This is TeX, C Version 3.14t3 (format=lplain 92.3.26)  2 APR 1993 08:57
- **labels.tex
- (labels.tex
- LaTeX Version 2.09 <7 Dec 1989>
- (/usr/local/lib/tex/inputs/jjps.sty
- Document Style `letter' <20 Sep 88>.
- \longindentation=\dimen99
- \indentedwidth=\dimen100
- \labelcount=\count79
- )
- Overfull \hbox (249.2949pt too wide) in paragraph at lines 20--21
- [][] 
- 
- \hbox(794.96988+0.0)x365.0
- .\hbox(0.0+0.0)x0.0
- .\hbox(794.96988+0.0)x614.2949, glue set 578.15991fil
- ..\glue 36.135
- ..\hbox(808.49876+0.0)x0.0
- ...\hbox(103.86638+0.0)x0.0, glue set - 221.96324fil, shifted -704.63239 []
- ..\glue 0.0 plus 1.0fil minus 1.0fil
- .\penalty 10000
- .\glue(\parfillskip) 0.0 plus 1.0fil
- .\glue(\rightskip) 0.0
- 
- [1
- 
- ] [2] ) 
- Here is how much of TeX's memory you used:
-  86 strings out of 4463
-  750 string characters out of 63241
-  24947 words of memory out of 262141
-  2049 multiletter control sequences out of 9500
-  19297 words of font info for 73 fonts, out of 72000 for 255
-  14 hyphenation exceptions out of 607
-  11i,7n,10p,160b,163s stack positions out of 300i,40n,60p,3000b,4000s
- 
- Output written on labels.dvi (2 pages, 680 bytes).
--- 0 ----
diff -cdN ../src.old//linmin.f ./linmin.f
*** ../src.old//linmin.f	Tue Apr 20 03:38:16 1993
--- ./linmin.f	Wed Jan 25 17:26:00 1995
***************
*** 1,7 ****
        SUBROUTINE LINMIN(XPARAM,ALPHA,PVECT,NVAR,FUNCT,OKF,IC, DOTT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       DIMENSION XPARAM(NVAR),PVECT(NVAR)
        COMMON /GRAVEC/ COSINE
        COMMON /NUMCAL/ NUMCAL
  C*********************************************************************
--- 1,7 ----
        SUBROUTINE LINMIN(XPARAM,ALPHA,PVECT,NVAR,FUNCT,OKF,IC, DOTT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       DIMENSION XPARAM(NVAR),PVECT(NVAR),GRAD(MAXPAR)
        COMMON /GRAVEC/ COSINE
        COMMON /NUMCAL/ NUMCAL
  C*********************************************************************
***************
*** 57,63 ****
              ALPHA=1.D0
              DELTA1 = 0.00005D0
              DELTA2 = 0.00001D0
!             IF(INDEX(KEYWRD,'PREC') .NE. 0) DELTA1=0.0000005
              MAXLIN=30
           ENDIF
           COSINE=99.99D0
--- 57,63 ----
              ALPHA=1.D0
              DELTA1 = 0.00005D0
              DELTA2 = 0.00001D0
!             IF(INDEX(KEYWRD,'PREC') .NE. 0) DELTA1=0.0000005D0
              MAXLIN=30
           ENDIF
           COSINE=99.99D0
***************
*** 161,173 ****
           GO TO 80
     70    ALPHA=3.0D00*VT(LEFT)-2.0D00*VT(CENTER)
     80    S=ALPHA-ALPOLD
!          IF (ABS(S).GT.XMAXM) S=SIGN(XMAXM,S)*(1+0.01*(XMAXM/S))
           ALPHA=S+ALPOLD
           GO TO 100
     90    ALPHA=-BETA/(2.0D00*ALPHA)
           S=ALPHA-ALPOLD
           XXM=2.0D00*XMAXM
!          IF (ABS(S).GT.XXM) S=SIGN(XXM,S)*(1+0.01*(XXM/S))
           ALPHA=S+ALPOLD
    100    CONTINUE
  C
--- 161,173 ----
           GO TO 80
     70    ALPHA=3.0D00*VT(LEFT)-2.0D00*VT(CENTER)
     80    S=ALPHA-ALPOLD
!          IF (ABS(S).GT.XMAXM) S=SIGN(XMAXM,S)*(1+0.01D0*(XMAXM/S))
           ALPHA=S+ALPOLD
           GO TO 100
     90    ALPHA=-BETA/(2.0D00*ALPHA)
           S=ALPHA-ALPOLD
           XXM=2.0D00*XMAXM
!          IF (ABS(S).GT.XXM) S=SIGN(XXM,S)*(1+0.01D0*(XXM/S))
           ALPHA=S+ALPOLD
    100    CONTINUE
  C
diff -cdN ../src.old//local.f ./local.f
*** ../src.old//local.f	Tue Apr 20 03:38:16 1993
--- ./local.f	Tue Jan 17 12:36:32 1995
***************
*** 104,110 ****
           DO 100 J=1,NUMAT
              IL=NFIRST(J)
              IU=NLAST(J)
!             X=0.0
  C$DOIT ASIS
              DO 90 K=IL,IU
     90       X=X+C(K,I)**2
--- 104,110 ----
           DO 100 J=1,NUMAT
              IL=NFIRST(J)
              IU=NLAST(J)
!             X=0.0D0
  C$DOIT ASIS
              DO 90 K=IL,IU
     90       X=X+C(K,I)**2
diff -cdN ../src.old//makpol.f ./makpol.f
*** ../src.old//makpol.f	Tue Apr 20 03:38:18 1993
--- ./makpol.f	Wed Jan 25 16:46:07 1995
***************
*** 15,24 ****
  *   
  ************************************************************************
  
!       CHARACTER KEYWRD*241, TXTATM*8
        COMMON /KEYWRD/ KEYWRD
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
        COMMON /EULER / TVEC(3,3), ID
--- 15,24 ----
  *   
  ************************************************************************
  
!       CHARACTER KEYWRD*241, TXTATM*8, SIMBOL*10, LTXT*1
        COMMON /KEYWRD/ KEYWRD
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /ATOMTX/ LTXT, TXTATM(NUMATM)
        COMMON /SIMBOL/ SIMBOL(MAXPAR)
        COMMON /EULER / TVEC(3,3), ID
***************
*** 26,31 ****
--- 26,32 ----
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /GEOSYM/ NDEP, LOCPAR(MAXPAR), IDEPFN(MAXPAR),
       1                      LOCDEP(MAXPAR)
+          IOFF=0
           MERS=READA(KEYWRD,INDEX(KEYWRD,' MERS'))
           DO 270 I=1,NATOMS
    270    IF(LABELS(I).EQ.99)LABELS(I)=100
diff -cdN ../src.old//matou1.f ./matou1.f
*** ../src.old//matou1.f	Tue Apr 20 03:38:18 1993
--- ./matou1.f	Wed Jan 25 16:54:46 1995
***************
*** 10,16 ****
        COMMON /ELEMTS/ ELEMNT(107)
        COMMON/SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),JNDEX(MXDIM),ISTA(2)
        COMMON /KEYWRD/ KEYWRD
!       CHARACTER*80 KEYWRD
        LOGICAL ALLPRT
  C**********************************************************************
  C
--- 10,16 ----
        COMMON /ELEMTS/ ELEMNT(107)
        COMMON/SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),JNDEX(MXDIM),ISTA(2)
        COMMON /KEYWRD/ KEYWRD
!       CHARACTER*241 KEYWRD, NAME*4, NAMO*4, ISTA*4
        LOGICAL ALLPRT
  C**********************************************************************
  C
diff -cdN ../src.old//matout.f ./matout.f
*** ../src.old//matout.f	Tue Apr 20 03:38:18 1993
--- ./matout.f	Thu Jan 26 09:50:53 1995
***************
*** 1,4 ****
!       SUBROUTINE MATOUT (A,B,NC,NR,NDIM)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION A(NDIM,NDIM), B(NDIM)
--- 1,4 ----
!       SUBROUTINE MATOUT (A,B,NC,NNR,NDIM)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION A(NDIM,NDIM), B(NDIM)
***************
*** 25,30 ****
--- 25,31 ----
        DIMENSION NATOM(4*MAXHEV+3*MAXLIT )
        SAVE ATORBS
        DATA ATORBS/' S','PX','PY','PZ','X2','XZ','Z2','YZ','XY'/
+       NR = NNR
        IF(NUMAT.EQ.0)GOTO 30
        IF(NLAST(NUMAT).NE.NR) GOTO 30
        DO 20 I=1,NUMAT
diff -cdN ../src.old//meci.f ./meci.f
*** ../src.old//meci.f	Tue Apr 20 03:38:18 1993
--- ./meci.f	Tue Jan 17 15:04:26 1995
***************
*** 129,135 ****
           DO 40 J=1,NMOS
     40    X=X+OCCA(J)
           XX=X+X
!          NE=XX+0.5
           NELEC=(NELECS-NE+1)/2
        ENDIF
        PRNT=(DEBUG.OR.LAST.EQ.3.AND.PRNT2)
--- 129,135 ----
           DO 40 J=1,NMOS
     40    X=X+OCCA(J)
           XX=X+X
!          NE=XX+0.5D0
           NELEC=(NELECS-NE+1)/2
        ENDIF
        PRNT=(DEBUG.OR.LAST.EQ.3.AND.PRNT2)
***************
*** 180,186 ****
              RJKAA(I,J)=XY(I,I,J,J)-XY(I,J,I,J)
     80 RJKAB(I,J)=XY(I,I,J,J)
        DO 100 I=1,NMOS
!          X=0.0
           DO 90 J=1,NMOS
              X=X+(RJKAA(I,J)+RJKAB(I,J))*OCCA(J)
     90    CONTINUE
--- 180,186 ----
              RJKAA(I,J)=XY(I,I,J,J)-XY(I,J,I,J)
     80 RJKAB(I,J)=XY(I,I,J,J)
        DO 100 I=1,NMOS
!          X=0.0D0
           DO 90 J=1,NMOS
              X=X+(RJKAA(I,J)+RJKAB(I,J))*OCCA(J)
     90    CONTINUE
***************
*** 210,216 ****
              K=READA(KEYWRD,I)
              LAB=K
              IF(PRNT)WRITE(6,'(''    MICROSTATES READ IN'')')
!             NTOT=XX+0.5
              REWIND 5
              DO 150 I=1,1000
                 READ(5,'(A)')LINE
--- 210,216 ----
              K=READA(KEYWRD,I)
              LAB=K
              IF(PRNT)WRITE(6,'(''    MICROSTATES READ IN'')')
!             NTOT=XX+0.5D0
              REWIND 5
              DO 150 I=1,1000
                 READ(5,'(A)')LINE
diff -cdN ../src.old//mecid.f ./mecid.f
*** ../src.old//mecid.f	Tue Apr 20 03:38:18 1993
--- ./mecid.f	Tue Jan 17 12:36:44 1995
***************
*** 28,34 ****
        COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
        GSE=0.D0
        DO 20 I=1,NMOS
!          X=0.0
           DO 10 J=1,NMOS
     10    X=X+(2.D0*XY(I,I,J,J)-XY(I,J,I,J))*OCCA(J)
           EIGA(I)=EIGS(I+NELEC)-X
--- 28,34 ----
        COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
        GSE=0.D0
        DO 20 I=1,NMOS
!          X=0.0D0
           DO 10 J=1,NMOS
     10    X=X+(2.D0*XY(I,I,J,J)-XY(I,J,I,J))*OCCA(J)
           EIGA(I)=EIGS(I+NELEC)-X
diff -cdN ../src.old//moldat.f ./moldat.f
*** ../src.old//moldat.f	Tue Apr 20 03:38:18 1993
--- ./moldat.f	Tue Jan 17 15:32:00 1995
***************
*** 39,45 ****
       2ALPAM1(107), EISOLA(107), DDAM1(107), QQAM1(107), AMAM1(107),
       3ADAM1(107), AQAM1(107) ,GSSAM1(107), GSPAM1(107), GPPAM1(107),
       4GP2AM1(107), HSPAM1(107),POLVOA(107)
!       COMMON /GEOM  / GEO(3,NUMATM)
        PARAMETER (MDUMY=MAXPAR**2-MPACK)
        COMMON /SCRACH/ RXYZ(MPACK), XDUMY(MDUMY)
  *
--- 39,45 ----
       2ALPAM1(107), EISOLA(107), DDAM1(107), QQAM1(107), AMAM1(107),
       3ADAM1(107), AQAM1(107) ,GSSAM1(107), GSPAM1(107), GPPAM1(107),
       4GP2AM1(107), HSPAM1(107),POLVOA(107)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        PARAMETER (MDUMY=MAXPAR**2-MPACK)
        COMMON /SCRACH/ RXYZ(MPACK), XDUMY(MDUMY)
  *
diff -cdN ../src.old//mopac.f ./mopac.f
*** ../src.old//mopac.f	Tue Apr 20 03:38:18 1993
--- ./mopac.f	Thu Jan 26 09:44:33 1995
***************
*** 22,28 ****
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
--- 22,28 ----
        COMMON /GEOSYM/ NDEP,LOCPAR(MAXPAR),IDEPFN(MAXPAR),LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
***************
*** 31,37 ****
        COMMON /LAST  / LAST
        COMMON /ATOMIC/ EISOL(107),EHEAT(107)
        COMMON /NUMCAL/ NUMCAL
!       COMMON /TIME  / TIME0
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
  C COSMO change
        LOGICAL ISEPS, USEPS , UPDA
--- 31,40 ----
        COMMON /LAST  / LAST
        COMMON /ATOMIC/ EISOL(107),EHEAT(107)
        COMMON /NUMCAL/ NUMCAL
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
  C COSMO change
        LOGICAL ISEPS, USEPS , UPDA
***************
*** 213,219 ****
  C  IF YOU WANT TO USE THE ESP PROGRAM, UNCOMMENT THE LINE
  C  "C#      CALL ESP", ADD "ESP, " TO MOPAC.OPT, THEN COMPILE ESP AND
  C  MNDO, AND RELINK.
! C#        CALL ESP
        ENDIF
     50 TIM=SECOND()-TIME0
        LIMSCF=.FALSE.
--- 216,222 ----
  C  IF YOU WANT TO USE THE ESP PROGRAM, UNCOMMENT THE LINE
  C  "C#      CALL ESP", ADD "ESP, " TO MOPAC.OPT, THEN COMPILE ESP AND
  C  MNDO, AND RELINK.
!           CALL ESP
        ENDIF
     50 TIM=SECOND()-TIME0
        LIMSCF=.FALSE.
***************
*** 230,237 ****
  *   THE JOB STARTS.
  *
  ************************************************************************
-       DATA I/0/
        SAVE I
  C#      WRITE(6,*)GETNAM('FOR005')
        OPEN(UNIT=2,FILE=GETNAM('FOR005'),STATUS='UNKNOWN')
  C
--- 233,240 ----
  *   THE JOB STARTS.
  *
  ************************************************************************
        SAVE I
+       DATA I/0/
  C#      WRITE(6,*)GETNAM('FOR005')
        OPEN(UNIT=2,FILE=GETNAM('FOR005'),STATUS='UNKNOWN')
  C
diff -cdN ../src.old//mullik.f ./mullik.f
*** ../src.old//mullik.f	Tue Apr 20 03:38:18 1993
--- ./mullik.f	Tue Jan 17 15:31:48 1995
***************
*** 18,24 ****
       3                NCLOSE,NOPEN,NDUMY,FRACT
       4       /KEYWRD/ KEYWRD
       5       /BETAS / BETAS(107),BETAP(107),BETAD(107)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
        CHARACTER KEYWRD*241, GETNAM*80
        LOGICAL GRAPH
--- 18,24 ----
       3                NCLOSE,NOPEN,NDUMY,FRACT
       4       /KEYWRD/ KEYWRD
       5       /BETAS / BETAS(107),BETAP(107),BETAD(107)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
        CHARACTER KEYWRD*241, GETNAM*80
        LOGICAL GRAPH
diff -cdN ../src.old//nllsq.f ./nllsq.f
*** ../src.old//nllsq.f	Tue Apr 20 03:38:18 1993
--- ./nllsq.f	Thu Jan 26 10:59:58 1995
***************
*** 40,46 ****
  C     TOLS6 = ABSOLUTE TOLERANCE ON X FOR LINEAR SEARCHES
  C     NRST = NUMBER OF CYCLES BETWEEN SIDESTEPS
  C     **********
!       COMMON /TIME  / TIME0
        COMMON /NLLSQI/ NCOUNT
        COMMON /NUMSCF/ NSCF
        DIMENSION Y(MAXPAR), EFS(MAXPAR), P(MAXPAR)
--- 40,49 ----
  C     TOLS6 = ABSOLUTE TOLERANCE ON X FOR LINEAR SEARCHES
  C     NRST = NUMBER OF CYCLES BETWEEN SIDESTEPS
  C     **********
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /NLLSQI/ NCOUNT
        COMMON /NUMSCF/ NSCF
        DIMENSION Y(MAXPAR), EFS(MAXPAR), P(MAXPAR)
***************
*** 49,57 ****
--- 52,62 ----
        COMMON /NLLCOM/ Q(MAXPAR,MAXPAR),R(MAXPAR,MAXPAR*2)
        COMMON /NLLCO2/ DDDUM(6),EFSLST(MAXPAR),XLAST(MAXPAR),IIIUM(7)
        LOGICAL MIDDLE, RESFIL, MINPRT, LOG
+       SAVE IXSO
        EQUIVALENCE ( IIIUM(2), ICYC),(IIIUM(3), IRST),
       1(IIIUM(4),JRST),
       2(DDDUM(2),ALF), (DDDUM(3),SSQ),(DDDUM(4), PN)
+       DATA IXSO/0/
        MIDDLE=(INDEX(KEYWRD,'RESTART') .NE. 0)
        LOG=(INDEX(KEYWRD,'NOLOG') .EQ. 0)
        IFLEPO=10
diff -cdN ../src.old//oldgeo.dat ./oldgeo.dat
*** ../src.old//oldgeo.dat
--- ./oldgeo.dat	Thu Jan 26 14:22:19 1995
***************
*** 0 ****
--- 1,65 ----
+     SYMMETRY gnorm=0 PRECISE
+   Formaldehyde, for Demonstration Purposes
+        
+   O
+   C 1.2 1
+   H 1.1 1 120 1
+   H 1.1 0 120 0 180 0 2 1 3
+  
+   3 1 4
+   3 2 4
+  
+  oldgeo force isotope
+    Do a force calculation on previous geometry
+  
+  oldgeo am1 nllsq gnorm=0 DERIV DEBUG DCART
+    Calculate the AM1 geometry, starting with the MNDO optimized geometry
+  
+  oldgeo force  AM1
+    Do a FORCE calculation on the AM1 geometry
+  
+  oldgeo restart force 
+    Re-do the FORCE calculation using the MNDO hessian
+  
+  oldgeo pm3  ef gnorm=0
+    Calculate the PM3 geometry, starting with the AM1 geometry
+  
+  oldgeo force  PM3
+   Do a FORCE calculation on the PM3 geometry
+  
+     charge=1
+   Formaldehyde, for Demonstration Purposes
+        
+   O
+   C 1.2 1
+   H 1.1 1 120 1
+   H 1.2 1 120 1 150 1 2 1 3
+  
+   oldgeo force  CHARGE=1
+    FORCE calculation on CH2O(+), RHF
+  
+  oldgeo uhf  CHARGE=1
+    Optimize the CH2O(+) geometry, UHF, starting with RHF geometry
+  
+  oldgeo force CHARGE=1 uhf
+   Do a force calculation on UHF geometry.
+  
+     charge=1 T=1M DUMP=1 UHF
+   Formaldehyde, for Demonstration Purposes
+        
+   O
+   C 1.2 1
+   H 1.1 1 120 1
+   H 1.2 1 120 1 150 1 2 1 3
+  
+   oldgeo force CHARGE=1 t=1h dump=23m
+    RHF force calculation
+  
+  oldgeo uhf RESTART CHARGE=1  t=1h
+  Restart geometry optimization in UHF
+  
+  oldgeo force CHARGE=1  uhf
+  
+  
+  
+  
diff -cdN ../src.old//paras.dat ./paras.dat
*** ../src.old//paras.dat
--- ./paras.dat	Thu Jan 26 14:22:20 1995
***************
*** 0 ****
--- 1,56 ----
+     USS     H     -11.396427
+     ZS      H     1.188078
+     BETAS   H     -6.173787
+     ALP     H     2.882324
+     FN11    H     0.122796
+     FN12    H     0.005090
+     FN13    H     -0.018336
+     FN21    H     5.000000
+     FN22    H     5.000000
+     FN23    H     2.000000
+     FN31    H     1.2
+     FN32    H     1.8
+     FN33    H     2.1
+     USS     C     -52.028658
+     UPP     C     -39.614239
+     ZS      C     1.808665
+     ZP      C     1.685116
+     BETAS   C     -15.715783
+     BETAP   C     -7.719283
+     ALP     C     2.648274
+     FN11    C     0.011355
+     FN12    C     0.045924
+     FN13    C     -0.020061
+     FN14    C     -0.001260
+     FN21    C     5.
+     FN22    C     5.
+     FN23    C     5.
+     FN24    C     5.
+     FN31    C     1.6
+     FN32    C     1.85
+     FN33    C     2.05
+     FN34    C     2.65
+     USS     O     -97.83
+     UPP     O     -78.262380
+     ZS      O     3.108032
+     ZP      O     2.524039
+     BETAS   O     -29.272773
+     BETAP   O     -29.272773
+     ALP     O     4.455371
+     FN11    O     0.280962
+     FN12    O     0.081430
+     FN21    O     5.
+     FN22    O     7.
+     FN31    O     0.847918
+     FN32    O     1.445071
+     GSS     H      12.848
+     GSS     C      12.230
+     GSP     C      11.470
+     GPP     C      11.080
+     GP2     C       9.840
+     HSP     C       2.430
+     GSS     O      15.420
+     GSP     O      14.480
+     GPP     O      14.520
+     GP2     O      12.980
+     HSP     O       3.940
diff -cdN ../src.old//parsav.f ./parsav.f
*** ../src.old//parsav.f	Tue Apr 20 03:38:18 1993
--- ./parsav.f	Tue Jan 17 15:31:40 1995
***************
*** 17,23 ****
       1                     LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
--- 17,23 ----
       1                     LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
diff -cdN ../src.old//partxy.f ./partxy.f
*** ../src.old//partxy.f	Tue Apr 20 03:38:18 1993
--- ./partxy.f	Tue Jan 17 14:35:43 1995
***************
*** 12,18 ****
        COMMON /NUMCAL/ NUMCAL
        DIMENSION W(N2ELEC*2)
        EQUIVALENCE (W,WJ)
-       REAL WJ, WK
        CHARACTER*241 KEYWRD
  C------------------------------------------------------------------
  C
--- 12,17 ----
diff -cdN ../src.old//pathk.f ./pathk.f
*** ../src.old//pathk.f	Tue Apr 20 03:38:18 1993
--- ./pathk.f	Tue Jan 17 15:31:33 1995
***************
*** 10,23 ****
  *	The reaction profile is archived.
  *
  ************************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /GRAVEC/ COSINE
        COMMON /PATH  / LATOM, LPARAM, REACT(200)
        COMMON /PPARAM/ CURRT
        COMMON /KLOOP / KLOOP
!       COMMON /PROFIL/ PROFIL
        COMMON /KEYWRD/ KEYWRD
        DIMENSION GD(MAXPAR),XLAST(MAXPAR),MDFP(20),XDFP(20)
        DIMENSION PROFIL(200)
--- 10,26 ----
  *	The reaction profile is archived.
  *
  ************************************************************************
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOVAR/ NVAR,LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /GRADNT/ GRAD(MAXPAR),GNORM
        COMMON /GRAVEC/ COSINE
        COMMON /PATH  / LATOM, LPARAM, REACT(200)
        COMMON /PPARAM/ CURRT
        COMMON /KLOOP / KLOOP
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /PROFIL/ PROFIL
!       COMMON /PROFIC/ PROFIL
! C ***************************** at 1994-05-25 *****
        COMMON /KEYWRD/ KEYWRD
        DIMENSION GD(MAXPAR),XLAST(MAXPAR),MDFP(20),XDFP(20)
        DIMENSION PROFIL(200)
***************
*** 40,46 ****
        ENDIF
  C
        KLOOP=1
!       CPUTOT=0.0
        CURRT=GEO(LPARAM,LATOM)
        PROFIL(1)=0.D0
        IF (INDEX(KEYWRD,'RESTART').NE.0) THEN
--- 43,49 ----
        ENDIF
  C
        KLOOP=1
!       CPUTOT=0.0D0
        CURRT=GEO(LPARAM,LATOM)
        PROFIL(1)=0.D0
        IF (INDEX(KEYWRD,'RESTART').NE.0) THEN
diff -cdN ../src.old//paths.f ./paths.f
*** ../src.old//paths.f	Tue Apr 20 03:38:18 1993
--- ./paths.f	Tue Jan 17 15:31:26 1995
***************
*** 4,11 ****
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /KEYWRD/ KEYWRD
!       COMMON /TIME  / TIME0
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /ALPARM/ ALPARM(3,MAXPAR),X0, X1, X2, ILOOP
  ************************************************************************
  *
--- 4,14 ----
        COMMON /PATH  / LATOM,LPARAM,REACT(200)
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
        COMMON /KEYWRD/ KEYWRD
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /ALPARM/ ALPARM(3,MAXPAR),X0, X1, X2, ILOOP
  ************************************************************************
  *
diff -cdN ../src.old//polar.f ./polar.f
*** ../src.old//polar.f	Tue Apr 20 03:38:18 1993
--- ./polar.f	Thu Jan 26 11:01:59 1995
***************
*** 17,23 ****
        COMMON /WORK1/ X1,X2,X3,X4,X5,X6,X7,X8,X9,X10,
       1               XDUMY(21*MPACK-10*MAXORB*MAXORB)
        COMMON /WORK3/ X11,X12,XDUMY1(4*MPACK-2*MAXORB*MAXORB)
!       COMMON /SCRACH/ X13, XDUMY2(MAXALL*MAXALL-MAXORB*MAXORB)
  C..
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /POLVOL/ POLVOL(107)
--- 17,23 ----
        COMMON /WORK1/ X1,X2,X3,X4,X5,X6,X7,X8,X9,X10,
       1               XDUMY(21*MPACK-10*MAXORB*MAXORB)
        COMMON /WORK3/ X11,X12,XDUMY1(4*MPACK-2*MAXORB*MAXORB)
!       COMMON /SCRACH/ X13, XDUMY2(MAXPAR*MAXPAR-MAXORB*MAXORB)
  C..
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /POLVOL/ POLVOL(107)
***************
*** 41,47 ****
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6)), (IR,IFILES(5))
        DIMENSION GRAD(MAXPAR),ROTVEC(3,3), TEMPV(3,3), DATAEV(10)
!      1,VALUE(10)
        CHARACTER  KEYWRD*241, TYPE*7, KOMENT*81, TITLE*81
        CHARACTER  POLKEY*241, LINE*80
        LOGICAL LET, LIMSCF
--- 41,47 ----
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6)), (IR,IFILES(5))
        DIMENSION GRAD(MAXPAR),ROTVEC(3,3), TEMPV(3,3), DATAEV(10)
!      1,VALUE(40)
        CHARACTER  KEYWRD*241, TYPE*7, KOMENT*81, TITLE*81
        CHARACTER  POLKEY*241, LINE*80
        LOGICAL LET, LIMSCF
***************
*** 60,66 ****
  C  IF LET IS SPECIFIED, THE INPUT ORIENTATION WILL BE USED.
  C
        IF (.NOT.LET) THEN
!          MASS = 1.0D00
           CALL AXIS(COORD,NUMAT,A,B,C,SUMW,MASS,ROTVEC)
           WRITE(6,20)
     20    FORMAT (/' ROTATION MATRIX FOR ORIENTATION OF MOLECULE:'/)
--- 60,66 ----
  C  IF LET IS SPECIFIED, THE INPUT ORIENTATION WILL BE USED.
  C
        IF (.NOT.LET) THEN
!          MASS = 1
           CALL AXIS(COORD,NUMAT,A,B,C,SUMW,MASS,ROTVEC)
           WRITE(6,20)
     20    FORMAT (/' ROTATION MATRIX FOR ORIENTATION OF MOLECULE:'/)
***************
*** 251,257 ****
           OMEGA=DATAEV(I)
           OMEGAU = OMEGA/27.2113961D+00
           IF (OMEGA.LT.1.0D-8) THEN
!             WAVLEN = 999999.99
  C#           WRITE(6,401) OMEGA
              WRITE(6,260)
    260       FORMAT(//,' ',65(1H*),/,
--- 251,257 ----
           OMEGA=DATAEV(I)
           OMEGAU = OMEGA/27.2113961D+00
           IF (OMEGA.LT.1.0D-8) THEN
!             WAVLEN = 999999.99D0
  C#           WRITE(6,401) OMEGA
              WRITE(6,260)
    260       FORMAT(//,' ',65(1H*),/,
***************
*** 259,265 ****
       2            ' ',65('*'))
           ELSE
              WRITE(6,270) OMEGA,OMEGAU,1239.8424D0/OMEGA,
!      1 8065.541*OMEGA
    270       FORMAT(//,' ',70(1H*),
       1          /' CALCULATION FOR A FREQUENCY OF ',F10.5,' EV  =',
       2           F14.5,' A.U. '/18X,'WAVELENGTH OF ',F10.2,' NM  =',
--- 259,265 ----
       2            ' ',65('*'))
           ELSE
              WRITE(6,270) OMEGA,OMEGAU,1239.8424D0/OMEGA,
!      1 8065.541D0*OMEGA
    270       FORMAT(//,' ',70(1H*),
       1          /' CALCULATION FOR A FREQUENCY OF ',F10.5,' EV  =',
       2           F14.5,' A.U. '/18X,'WAVELENGTH OF ',F10.2,' NM  =',
***************
*** 541,547 ****
  C  X: ID=1   Y: ID=2   Z: ID=3
  C
        DO 70 ID = 1,3
!          CMPTIM = SECOND(1)
           LAST = .FALSE.
  C
  C  CALCULATE THE DIPOLE MATRIX.
--- 541,547 ----
  C  X: ID=1   Y: ID=2   Z: ID=3
  C
        DO 70 ID = 1,3
!          CMPTIM = SECOND()
           LAST = .FALSE.
  C
  C  CALCULATE THE DIPOLE MATRIX.
***************
*** 589,595 ****
           CALL HPLUSF (F,H1,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 20
!          CMPTIM = SECOND(1) - CMPTIM
           WRITE(6,30) ICOUNT,CMPTIM,DIFF,DELA
     30    FORMAT (/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,' SECONDS',
       1         /'           DENSITY CONVERG. TO ',1PD12.5,
--- 589,595 ----
           CALL HPLUSF (F,H1,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 20
!          CMPTIM = SECOND() - CMPTIM
           WRITE(6,30) ICOUNT,CMPTIM,DIFF,DELA
     30    FORMAT (/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,' SECONDS',
       1         /'           DENSITY CONVERG. TO ',1PD12.5,
***************
*** 720,726 ****
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /VECTOR/ C(MORB2),EIGS(MAXORB),CA(MORB2),DUMY(MAXORB)
        COMMON /WMATRX/ W(N2ELEC*2)
!       COMMON /COORD/ COORD(3,NUMATM)
        COMMON /OMVAL/ OMEGA
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6))
--- 720,726 ----
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /VECTOR/ C(MORB2),EIGS(MAXORB),CA(MORB2),DUMY(MAXORB)
        COMMON /WMATRX/ W(N2ELEC*2)
!       COMMON /GEOM /  GEO(3,NUMATM),  COORD(3,NUMATM)
        COMMON /OMVAL/ OMEGA
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE(IW,IFILES(6))
***************
*** 767,773 ****
        BAVY = 0.0D+00
        BAVZ = 0.0D+00
        DO 90 ID = 1,9
!          CMPTIM = SECOND(1)
           IA=IDA(ID)
           IB=IDB(ID)
           LAST = .FALSE.
--- 767,773 ----
        BAVY = 0.0D+00
        BAVZ = 0.0D+00
        DO 90 ID = 1,9
!          CMPTIM = SECOND()
           IA=IDA(ID)
           IB=IDB(ID)
           LAST = .FALSE.
***************
*** 888,894 ****
           CALL HPLUSF(F,DA,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 40
!          CMPTIM = SECOND(1) - CMPTIM
           WRITE(6,50) ICOUNT,CMPTIM
     50    FORMAT(/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,
       1            ' SECONDS')
--- 888,894 ----
           CALL HPLUSF(F,DA,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 40
!          CMPTIM = SECOND() - CMPTIM
           WRITE(6,50) ICOUNT,CMPTIM
     50    FORMAT(/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,
       1            ' SECONDS')
***************
*** 906,912 ****
  C CALCULATES THE AVERAGE VALUE OF BETA
  C
              IF ((ID .EQ. 1) .AND. (IC .EQ. 1)) THEN
!                BAVX = BAVX + 3.0*BETAW
              ELSEIF (((ID.EQ.5).OR.(ID.EQ.9)).AND. (IC .EQ. 1)) THEN
                 BAVX = BAVX + BETAW
              ELSEIF (((ID.EQ.2).OR.(ID .EQ. 4)) .AND. (IC .EQ. 2)) THEN
--- 906,912 ----
  C CALCULATES THE AVERAGE VALUE OF BETA
  C
              IF ((ID .EQ. 1) .AND. (IC .EQ. 1)) THEN
!                BAVX = BAVX + 3.0D0*BETAW
              ELSEIF (((ID.EQ.5).OR.(ID.EQ.9)).AND. (IC .EQ. 1)) THEN
                 BAVX = BAVX + BETAW
              ELSEIF (((ID.EQ.2).OR.(ID .EQ. 4)) .AND. (IC .EQ. 2)) THEN
***************
*** 917,923 ****
  C CALCULATES AVERAGE BETA IN Y-DIRECTION
  C
              IF ((ID .EQ. 5) .AND. (IC .EQ. 2)) THEN
!                BAVY = BAVY + 3.0*BETAW
              ELSEIF (((ID.EQ.2).OR.(ID .EQ. 4)) .AND. (IC .EQ. 1)) THEN
                 BAVY = BAVY + BETAW
              ELSEIF (((ID.EQ.1).OR.(ID .EQ. 9)) .AND. (IC .EQ. 2)) THEN
--- 917,923 ----
  C CALCULATES AVERAGE BETA IN Y-DIRECTION
  C
              IF ((ID .EQ. 5) .AND. (IC .EQ. 2)) THEN
!                BAVY = BAVY + 3.0D0*BETAW
              ELSEIF (((ID.EQ.2).OR.(ID .EQ. 4)) .AND. (IC .EQ. 1)) THEN
                 BAVY = BAVY + BETAW
              ELSEIF (((ID.EQ.1).OR.(ID .EQ. 9)) .AND. (IC .EQ. 2)) THEN
***************
*** 928,934 ****
  C CALCULATES AVERAGE BETA IN THE Z-DIRECTION
  C
              IF ((ID .EQ. 9) .AND. (IC .EQ. 3)) THEN
!                BAVZ = BAVZ + 3.0 * BETAW
              ELSEIF (((ID.EQ.3).OR.(ID .EQ. 7)) .AND. (IC .EQ. 1)) THEN
                 BAVZ = BAVZ + BETAW
              ELSEIF (((ID.EQ.6).OR.(ID .EQ. 8)) .AND. (IC .EQ. 2)) THEN
--- 928,934 ----
  C CALCULATES AVERAGE BETA IN THE Z-DIRECTION
  C
              IF ((ID .EQ. 9) .AND. (IC .EQ. 3)) THEN
!                BAVZ = BAVZ + 3.0D0 * BETAW
              ELSEIF (((ID.EQ.3).OR.(ID .EQ. 7)) .AND. (IC .EQ. 1)) THEN
                 BAVZ = BAVZ + BETAW
              ELSEIF (((ID.EQ.6).OR.(ID .EQ. 8)) .AND. (IC .EQ. 2)) THEN
***************
*** 1027,1033 ****
        BAVY = 0.0D+00
        BAVZ = 0.0D+00
        DO 80 ID = 1,6
!          CMPTIM = SECOND(1)
           IA=IDA(ID)
           IB=IDB(ID)
           LAST = .FALSE.
--- 1027,1033 ----
        BAVY = 0.0D+00
        BAVZ = 0.0D+00
        DO 80 ID = 1,6
!          CMPTIM = SECOND()
           IA=IDA(ID)
           IB=IDB(ID)
           LAST = .FALSE.
***************
*** 1135,1141 ****
           CALL HPLUSF(F,DA,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 30
!          CMPTIM = SECOND(1) - CMPTIM
           WRITE(6,40) ICOUNT,CMPTIM
     40    FORMAT(/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,
       1            ' SECONDS')
--- 1135,1141 ----
           CALL HPLUSF(F,DA,NORBS)
  C..............................................................
           IF (.NOT.LAST) GO TO 30
!          CMPTIM = SECOND() - CMPTIM
           WRITE(6,40) ICOUNT,CMPTIM
     40    FORMAT(/' CONVERGED IN',I4,' ITERATIONS IN',F10.2,
       1            ' SECONDS')
***************
*** 1162,1192 ****
  C CALCULATE AVERAGE BETA IN THE X-DIRECTION
  C
              IF ((ID .EQ. 1) .AND. (IC .EQ. 1)) THEN
!                BAVX = BAVX + 3.0 * BETAW
              ELSEIF ((ID .EQ. 2) .AND. (IC .EQ. 2)) THEN
!                BAVX = BAVX + 2.0 * BETAW
              ELSEIF ((ID .EQ. 3) .AND. (IC .EQ. 3)) THEN
!                BAVX = BAVX + 2.0 * BETAW
              ELSEIF (((ID.EQ.4).OR.(ID .EQ. 6)) .AND. (IC .EQ. 1)) THEN
                 BAVX = BAVX + BETAW
              ENDIF
  C CALCULATES AVERAGE BETA IN THE Y-DIRECTION
              IF ((ID .EQ. 4) .AND. (IC .EQ. 2)) THEN
!                BAVY = BAVY + 3.0 * BETAW
              ELSEIF ((ID .EQ. 2) .AND. (IC .EQ. 1)) THEN
!                BAVY = BAVY + 2.0 * BETAW
              ELSEIF ((ID .EQ. 5) .AND. (IC .EQ. 3)) THEN
!                BAVY = BAVY + 2.0 * BETAW
              ELSEIF (((ID.EQ.1).OR.(ID .EQ. 6)) .AND. (IC .EQ. 2)) THEN
                 BAVY = BAVY + BETAW
              ENDIF
  C CALCULATES AVERAGE BETA IN THE Z-DIRECTION
              IF ((ID .EQ. 6) .AND. (IC .EQ. 3)) THEN
!                BAVZ = BAVZ + 3.0 * BETAW
              ELSEIF ((ID .EQ. 3) .AND. (IC .EQ. 1)) THEN
!                BAVZ = BAVZ + 2.0 * BETAW
              ELSEIF ((ID .EQ. 5) .AND. (IC .EQ. 2)) THEN
!                BAVZ = BAVZ + 2.0 * BETAW
              ELSEIF (((ID.EQ.4) .OR. (ID.EQ.1)) .AND. (IC .EQ. 3)) THEN
                 BAVZ = BAVZ + BETAW
              ENDIF
--- 1162,1192 ----
  C CALCULATE AVERAGE BETA IN THE X-DIRECTION
  C
              IF ((ID .EQ. 1) .AND. (IC .EQ. 1)) THEN
!                BAVX = BAVX + 3.0D0 * BETAW
              ELSEIF ((ID .EQ. 2) .AND. (IC .EQ. 2)) THEN
!                BAVX = BAVX + 2.0D0 * BETAW
              ELSEIF ((ID .EQ. 3) .AND. (IC .EQ. 3)) THEN
!                BAVX = BAVX + 2.0D0 * BETAW
              ELSEIF (((ID.EQ.4).OR.(ID .EQ. 6)) .AND. (IC .EQ. 1)) THEN
                 BAVX = BAVX + BETAW
              ENDIF
  C CALCULATES AVERAGE BETA IN THE Y-DIRECTION
              IF ((ID .EQ. 4) .AND. (IC .EQ. 2)) THEN
!                BAVY = BAVY + 3.0D0 * BETAW
              ELSEIF ((ID .EQ. 2) .AND. (IC .EQ. 1)) THEN
!                BAVY = BAVY + 2.0D0 * BETAW
              ELSEIF ((ID .EQ. 5) .AND. (IC .EQ. 3)) THEN
!                BAVY = BAVY + 2.0D0 * BETAW
              ELSEIF (((ID.EQ.1).OR.(ID .EQ. 6)) .AND. (IC .EQ. 2)) THEN
                 BAVY = BAVY + BETAW
              ENDIF
  C CALCULATES AVERAGE BETA IN THE Z-DIRECTION
              IF ((ID .EQ. 6) .AND. (IC .EQ. 3)) THEN
!                BAVZ = BAVZ + 3.0D0 * BETAW
              ELSEIF ((ID .EQ. 3) .AND. (IC .EQ. 1)) THEN
!                BAVZ = BAVZ + 2.0D0 * BETAW
              ELSEIF ((ID .EQ. 5) .AND. (IC .EQ. 2)) THEN
!                BAVZ = BAVZ + 2.0D0 * BETAW
              ELSEIF (((ID.EQ.4) .OR. (ID.EQ.1)) .AND. (IC .EQ. 3)) THEN
                 BAVZ = BAVZ + BETAW
              ENDIF
***************
*** 1352,1358 ****
  C  CHECK FOR CONVERGENCE
  C
        DIFF = 0.0D00
!       MAXU = -1000.00
        DO 100 I = 1,NORBS
           DO 90 J = 1,NORBS
              UDIF = UAB(I,J)-UOLD1(I,J)
--- 1352,1358 ----
  C  CHECK FOR CONVERGENCE
  C
        DIFF = 0.0D00
!       MAXU = -1000.00D0
        DO 100 I = 1,NORBS
           DO 90 J = 1,NORBS
              UDIF = UAB(I,J)-UOLD1(I,J)
***************
*** 2377,2387 ****
  C CALCULATE THE AVERAGE GAMMA VALUE
  C
           IF (IE .LE. 3) THEN
!             GAV = GAV + 3.0*YY
           ELSEIF (IE .GT. 9) THEN
              GAV = GAV + YY
           ELSE
!             GAV = GAV + 2.0*YY
           ENDIF
  C
  C WRITE GAMMA(ABCD)
--- 2377,2387 ----
  C CALCULATE THE AVERAGE GAMMA VALUE
  C
           IF (IE .LE. 3) THEN
!             GAV = GAV + 3.0D0*YY
           ELSEIF (IE .GT. 9) THEN
              GAV = GAV + YY
           ELSE
!             GAV = GAV + 2.0D0*YY
           ENDIF
  C
  C WRITE GAMMA(ABCD)
***************
*** 2610,2620 ****
  C CALCULATE THE AVERAGE GAMMA VALUE
  C
           IF (IE .LE. 3) THEN
!             GAV = GAV + 3.0*YY
           ELSEIF (IE .GT. 9) THEN
              GAV = GAV + YY
           ELSE
!             GAV = GAV + 2.0*YY
           ENDIF
  C
  C WRITE GAMMA(ABCD)
--- 2610,2620 ----
  C CALCULATE THE AVERAGE GAMMA VALUE
  C
           IF (IE .LE. 3) THEN
!             GAV = GAV + 3.0D0*YY
           ELSEIF (IE .GT. 9) THEN
              GAV = GAV + YY
           ELSE
!             GAV = GAV + 2.0D0*YY
           ENDIF
  C
  C WRITE GAMMA(ABCD)
***************
*** 2670,2676 ****
        CALL DAREAD (G2Z,MAXSQ,19)
  C XXX
        CALL BETCOM (U1X,G1X,U2X,G2X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX +3.0 * BXXX
  C YXX
        CALL BETCOM (U1X,G1X,U2Y,G2Y,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
--- 2670,2676 ----
        CALL DAREAD (G2Z,MAXSQ,19)
  C XXX
        CALL BETCOM (U1X,G1X,U2X,G2X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX +3.0D0 * BXXX
  C YXX
        CALL BETCOM (U1X,G1X,U2Y,G2Y,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
***************
*** 2706,2712 ****
        BAVX = BAVX + BXYY
  C YYY
        CALL BETCOM (U1Y,G1Y,U2Y,G2Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0*BYYY
  C ZYY
        CALL BETCOM (U1Y,G1Y,U2Z,G2Z,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
--- 2706,2712 ----
        BAVX = BAVX + BXYY
  C YYY
        CALL BETCOM (U1Y,G1Y,U2Y,G2Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0D0*BYYY
  C ZYY
        CALL BETCOM (U1Y,G1Y,U2Z,G2Z,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
***************
*** 2742,2748 ****
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETCOM (U1Z,G1Z,U2Z,G2Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
--- 2742,2748 ----
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETCOM (U1Z,G1Z,U2Z,G2Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0D0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
***************
*** 2827,2833 ****
        CALL DAREAD (G1Z,MAXSQ,13)
  C XXX
        CALL BETALL (U1X,G1X,U0X,G0X,U1X,G1X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX + 3.0 * BXXX
  C YXX
        CALL BETALL (U1Y,G1Y,U0X,G0X,U1X,G1X,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
--- 2827,2833 ----
        CALL DAREAD (G1Z,MAXSQ,13)
  C XXX
        CALL BETALL (U1X,G1X,U0X,G0X,U1X,G1X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX + 3.0D0 * BXXX
  C YXX
        CALL BETALL (U1Y,G1Y,U0X,G0X,U1X,G1X,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
***************
*** 2863,2869 ****
        BAVX = BAVX + BXYY
  C YYY
        CALL BETALL (U1Y,G1Y,U0Y,G0Y,U1Y,G1Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0 * BYYY
  C ZYY
        CALL BETALL (U1Z,G1Z,U0Y,G0Y,U1Y,G1Y,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
--- 2863,2869 ----
        BAVX = BAVX + BXYY
  C YYY
        CALL BETALL (U1Y,G1Y,U0Y,G0Y,U1Y,G1Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0D0 * BYYY
  C ZYY
        CALL BETALL (U1Z,G1Z,U0Y,G0Y,U1Y,G1Y,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
***************
*** 2899,2905 ****
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETALL (U1Z,G1Z,U0Z,G0Z,U1Z,G1Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
--- 2899,2905 ----
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETALL (U1Z,G1Z,U0Z,G0Z,U1Z,G1Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0D0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
***************
*** 2985,2991 ****
  C
  C XXX
        CALL BETAL1 (U0X,G0X,U1X,G1X,U1X,G1X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX + 3.0* BXXX
  C YXX
        CALL BETAL1 (U0Y,G0Y,U1X,G1X,U1X,G1X,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
--- 2985,2991 ----
  C
  C XXX
        CALL BETAL1 (U0X,G0X,U1X,G1X,U1X,G1X,NCLOSE,NORBS,BXXX)
!       BAVX = BAVX + 3.0D0* BXXX
  C YXX
        CALL BETAL1 (U0Y,G0Y,U1X,G1X,U1X,G1X,NCLOSE,NORBS,BYXX)
        BAVY = BAVY + BYXX
***************
*** 3021,3027 ****
        BAVX = BAVX + BXYY
  C YYY
        CALL BETAL1 (U0Y,G0Y,U1Y,G1Y,U1Y,G1Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0 * BYYY
  C ZYY
        CALL BETAL1 (U0Z,G0Z,U1Y,G1Y,U1Y,G1Y,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
--- 3021,3027 ----
        BAVX = BAVX + BXYY
  C YYY
        CALL BETAL1 (U0Y,G0Y,U1Y,G1Y,U1Y,G1Y,NCLOSE,NORBS,BYYY)
!       BAVY = BAVY + 3.0D0 * BYYY
  C ZYY
        CALL BETAL1 (U0Z,G0Z,U1Y,G1Y,U1Y,G1Y,NCLOSE,NORBS,BZYY)
        BAVZ = BAVZ + BZYY
***************
*** 3057,3063 ****
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETAL1 (U0Z,G0Z,U1Z,G1Z,U1Z,G1Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
--- 3057,3063 ----
        BAVY = BAVY + BYZZ
  C ZZZ
        CALL BETAL1 (U0Z,G0Z,U1Z,G1Z,U1Z,G1Z,NCLOSE,NORBS,BZZZ)
!       BAVZ = BAVZ + 3.0D0 * BZZZ
  C
        BAVX = BAVX/5.0D+00
        BAVY = BAVY/5.0D+00
diff -cdN ../src.old//powsav.f ./powsav.f
*** ../src.old//powsav.f	Tue Apr 20 03:38:20 1993
--- ./powsav.f	Tue Jan 17 15:31:17 1995
***************
*** 24,30 ****
       1                     LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /LOCVAR/ LOCVAR(2,MAXPAR)
        COMMON /KEYWRD/ KEYWRD
        COMMON /VALVAR/ VALVAR(MAXPAR),NUMVAR
--- 24,30 ----
       1                     LOCDEP(MAXPAR)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /LOCVAR/ LOCVAR(2,MAXPAR)
        COMMON /KEYWRD/ KEYWRD
        COMMON /VALVAR/ VALVAR(MAXPAR),NUMVAR
diff -cdN ../src.old//powsq.f ./powsq.f
*** ../src.old//powsq.f	Tue Apr 20 03:38:20 1993
--- ./powsq.f	Tue Jan 17 15:30:53 1995
***************
*** 25,34 ****
  C        *****  TEXAS.  DECEMBER 1973                           *****
  C
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /LAST  / LAST
        COMMON /KEYWRD/ KEYWRD
!       COMMON /TIME  / TIME0
        COMMON /NUMSCF/ NSCF
        COMMON /GEOSYM/ NDEP, LOCPAR(MAXPAR), IDEPFN(MAXPAR),
       1                 LOCDEP(MAXPAR)
--- 25,37 ----
  C        *****  TEXAS.  DECEMBER 1973                           *****
  C
        COMMON /GEOVAR/ NDUM,LOC(2,MAXPAR), IDUMY, XARAM(MAXPAR)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /LAST  / LAST
        COMMON /KEYWRD/ KEYWRD
! C ***** Modified by Jiro Toyoda at 1994-05-25 *****
! C     COMMON /TIME  / TIME0
!       COMMON /TIMEC / TIME0
! C ***************************** at 1994-05-25 *****
        COMMON /NUMSCF/ NSCF
        COMMON /GEOSYM/ NDEP, LOCPAR(MAXPAR), IDEPFN(MAXPAR),
       1                 LOCDEP(MAXPAR)
diff -cdN ../src.old//prtdrc.f ./prtdrc.f
*** ../src.old//prtdrc.f	Tue Apr 20 03:38:20 1993
--- ./prtdrc.f	Thu Jan 26 10:35:35 1995
***************
*** 34,44 ****
--- 34,46 ----
       1GEO(3*NUMATM), VREF(MAXPAR), VREF0(MAXPAR), TSTEPS(100), ETOT3(3),
       2XTOT3(3)
        SAVE  REFSCF, COTYPE
+       SAVE TURN
        LOGICAL  TURN, PARMAX, LDRC, GOTURN
        CHARACTER*241 KEYWRD, TEXT1*3, TEXT2*2,  COTYPE(3)*2
        DATA ICALCN/0/
        DATA REFSCF/0.D0/
        DATA COTYPE/'BL','BA','DI'/
+       DATA TURN/.FALSE./
        IF (ICALCN.NE.NUMCAL) THEN
           ICALCN=NUMCAL
           DO 10 I=1,NVAR
***************
*** 276,282 ****
    100          TSTEPS(I)=(-BB+SIGN(SQRT(BB*BB-4.D0*(AA*C1)),BB))/(2.D0*A
       1A)
              ENDIF
!             FRACT=-.1
              REFSCF=REFSCF+NFRACT*STEPH
           ENDIF
        ELSEIF(STEPT.NE.0.D0) THEN
--- 278,284 ----
    100          TSTEPS(I)=(-BB+SIGN(SQRT(BB*BB-4.D0*(AA*C1)),BB))/(2.D0*A
       1A)
              ENDIF
!             FRACT=-.1D0
              REFSCF=REFSCF+NFRACT*STEPH
           ENDIF
        ELSEIF(STEPT.NE.0.D0) THEN
***************
*** 319,331 ****
       1A)
              ENDIF
              REFX=REFX+NFRACT*STEPX
!             FRACT=-.1
           ENDIF
        ELSE
  C
  C   PRINT EVERY POINT.
  C
!          FRACT=0.0
        ENDIF
        IF(FRACT.LT.-9.D0)GOTO 170
        TURN=(TURN.OR.ABS(FRACT-1.D0).GT.1.D-6)
--- 321,333 ----
       1A)
              ENDIF
              REFX=REFX+NFRACT*STEPX
!             FRACT=-.1D0
           ENDIF
        ELSE
  C
  C   PRINT EVERY POINT.
  C
!          FRACT=0.0D0
        ENDIF
        IF(FRACT.LT.-9.D0)GOTO 170
        TURN=(TURN.OR.ABS(FRACT-1.D0).GT.1.D-6)
diff -cdN ../src.old//react1.f ./react1.f
*** ../src.old//react1.f	Tue Apr 20 03:38:20 1993
--- ./react1.f	Tue Jan 17 15:27:42 1995
***************
*** 2,8 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        REAL PASTOR, PBSTOR
        INCLUDE 'SIZES'
!       COMMON /GEOM  / GEO(3,NUMATM)
        DIMENSION GEOA(3,NUMATM), GEOVEC(3,NUMATM),
       1          PASTOR(MPACK),
       2          PBSTOR(MPACK), XOLD(MAXPAR), GROLD(MAXPAR)
--- 2,8 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        REAL PASTOR, PBSTOR
        INCLUDE 'SIZES'
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        DIMENSION GEOA(3,NUMATM), GEOVEC(3,NUMATM),
       1          PASTOR(MPACK),
       2          PBSTOR(MPACK), XOLD(MAXPAR), GROLD(MAXPAR)
***************
*** 254,260 ****
           STEP=MIN(SWAP,0.5D0, 6.D0/GNORM, DELL,STEPMX*STEP0+0.005D0)
           STEP=MIN(0.2D0,STEP/STEP0)*STEP0
           SWAP=SWAP+1.D0
!          DELL=DELL+0.1
           WRITE(6,'(''  BAR SHORTENED BY'',F12.7,'' PERCENT'')')
       1STEP/STEP0*100.D0
           STEP0=STEP0-STEP
--- 254,260 ----
           STEP=MIN(SWAP,0.5D0, 6.D0/GNORM, DELL,STEPMX*STEP0+0.005D0)
           STEP=MIN(0.2D0,STEP/STEP0)*STEP0
           SWAP=SWAP+1.D0
!          DELL=DELL+0.1D0
           WRITE(6,'(''  BAR SHORTENED BY'',F12.7,'' PERCENT'')')
       1STEP/STEP0*100.D0
           STEP0=STEP0-STEP
***************
*** 330,336 ****
              EOLD=ESCF
              SUM=GOLD
              GOLD=GNORM
!             I=1.7+ONE*0.5
              IF(GNORM.GT.10.D0)GOK(I)=.TRUE.
              GNORM=SUM
              DO 210 I=1,NATOMS
--- 330,336 ----
              EOLD=ESCF
              SUM=GOLD
              GOLD=GNORM
!             I=1.7D0+ONE*0.5D0
              IF(GNORM.GT.10.D0)GOK(I)=.TRUE.
              GNORM=SUM
              DO 210 I=1,NATOMS
diff -cdN ../src.old//readmo.f ./readmo.f
*** ../src.old//readmo.f	Tue Apr 20 03:38:20 1993
--- ./readmo.f	Thu Jan 26 11:07:21 1995
***************
*** 51,57 ****
        DIMENSION LOPT(3,NUMATM)
        CHARACTER KEYWRD*241, KOMENT*81, TITLE*81, LINE*80, BANNER*80
        CHARACTER KEYS(80)*1, SPACE*1, SPACE2*2, CH*1, CH2*2
!       CHARACTER ELEMNT*2, IDATE*24, GETNAM*80, NAME*4
        COMMON /KEYWRD/ KEYWRD
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
--- 51,57 ----
        DIMENSION LOPT(3,NUMATM)
        CHARACTER KEYWRD*241, KOMENT*81, TITLE*81, LINE*80, BANNER*80
        CHARACTER KEYS(80)*1, SPACE*1, SPACE2*2, CH*1, CH2*2
!       CHARACTER ELEMNT*2, IDATE*24, GETNAM*80, NAME*4, NAMO*4, ISTA*4
        COMMON /KEYWRD/ KEYWRD
        COMMON /TITLES/ KOMENT,TITLE
        COMMON /GEOVAR/ NVAR, LOC(2,MAXPAR), IDUMY, XPARAM(MAXPAR)
***************
*** 62,72 ****
       * NMIDLE(NUMATM),NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,
       * NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /OKMANY/ ISOK
!       PARAMETER (MXDIM=MAXORB+NUMATM)
        COMMON /SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDX(MXDIM),
       * ISTA(2)
        COMMON /ISTOPE/ AMS(107)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /NUMCAL/ NUMCAL
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
--- 62,72 ----
       * NMIDLE(NUMATM),NLAST(NUMATM),NORBS,NELECS,NALPHA,NBETA,
       * NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /OKMANY/ ISOK
!       PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDX(MXDIM),
       * ISTA(2)
        COMMON /ISTOPE/ AMS(107)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /NUMCAL/ NUMCAL
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1NA(NUMATM),NB(NUMATM),NC(NUMATM)
***************
*** 74,80 ****
       1                      LOCDEP(MAXPAR)
        LOGICAL INT, AIGEO, ISOK
        SAVE SPACE, SPACE2, IREACT, INT
!       DIMENSION COORD(3,NUMATM),VALUE(40)
        EQUIVALENCE (KEYS(1),KEYWRD)
        DATA SPACE, SPACE2/' ','  '/
        CONVTR=2.D0*ASIN(1.D0)/180.D0
--- 74,80 ----
       1                      LOCDEP(MAXPAR)
        LOGICAL INT, AIGEO, ISOK
        SAVE SPACE, SPACE2, IREACT, INT
!       DIMENSION COORD(3,NUMATM),VALUE(40),C(1)
        EQUIVALENCE (KEYS(1),KEYWRD)
        DATA SPACE, SPACE2/' ','  '/
        CONVTR=2.D0*ASIN(1.D0)/180.D0
***************
*** 429,434 ****
--- 429,437 ----
    240       CONTINUE
           ENDIF
        ENDIF
+ C
+ C    C is not actually used in this call.
+ C
        CALL SYMTRZ(COORD,C,NORBS,NORBS,.FALSE.,.FALSE.)
        WRITE(6,'(//''     MOLECULAR POINT GROUP   :   '',A4)') NAME
        IF(   INDEX(KEYWRD,' XYZ') .NE. 0 )THEN
diff -cdN ../src.old//setupg.f ./setupg.f
*** ../src.old//setupg.f	Tue Apr 20 03:38:20 1993
--- ./setupg.f	Tue Jan 17 11:45:47 1995
***************
*** 4,10 ****
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
        COMMON /NATYPE/ NZTYPE(107),MTYPE(30),LTYPE
        COMMON /TEMP/  CC(60,6),ZZ(60,6)
!       COMMON /STO6G/ ALLC(6,5,2),ALLZ(6,5,2)
  C     SET-UP THE STEWART'S STO-6G EXPANSIONS
  C                                            1S
        ALLZ(1,1,1) =2.310303149D01
--- 4,10 ----
        COMMON /EXPONT/ ZS(107),ZP(107),ZD(107)
        COMMON /NATYPE/ NZTYPE(107),MTYPE(30),LTYPE
        COMMON /TEMP/  CC(60,6),ZZ(60,6)
!       COMMON /STO6G/ ALLC(6,6,2),ALLZ(6,6,2)
  C     SET-UP THE STEWART'S STO-6G EXPANSIONS
  C                                            1S
        ALLZ(1,1,1) =2.310303149D01
diff -cdN ../src.old//sympro.f ./sympro.f
*** ../src.old//sympro.f	Tue Apr 20 03:38:20 1993
--- ./sympro.f	Wed Jan 25 16:06:10 1995
***************
*** 2,8 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DELDIP(3,*)
!       COMMON /SYMOPS/ R( 9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
        COMMON /ATOMS/ COORD, NATOMS, NVAR
--- 2,8 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DELDIP(3,*)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
        COMMON /ATOMS/ COORD, NATOMS, NVAR
***************
*** 26,32 ****
        SUBROUTINE SYMR
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
--- 26,32 ----
        SUBROUTINE SYMR
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
***************
*** 391,397 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DIP(3,*)
!       COMMON /SYMOPS/ R( 9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
--- 391,397 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DIP(3,*)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
***************
*** 454,472 ****
  C
           IF (K .GT. L) THEN
              IEL33 = (3*K*(3*K-1))/2 + 3*L
!             TEMP(9) = 0.5 * H(IEL33)
!             TEMP(8) = 0.5 * H(IEL33-1)
!             TEMP(7) = 0.5 * H(IEL33-2)
!             TEMP(6) = 0.5 * H(IEL33-K*3+1)
!             TEMP(5) = 0.5 * H(IEL33-K*3)
!             TEMP(4) = 0.5 * H(IEL33-K*3-1)
!             TEMP(3) = 0.5 * H(IEL33-6*K+3)
!             TEMP(2) = 0.5 * H(IEL33-6*K+2)
!             TEMP(1) = 0.5 * H(IEL33-6*K+1)
           ELSE
              IEL33 = (3*L*(3*L-1))/2 + 3*K
!             FACT = 1.0
!             IF (L .LT. I) FACT = 0.5
              TEMP(9) = FACT * H(IEL33)
              TEMP(6) = FACT * H(IEL33-1)
              TEMP(3) = FACT * H(IEL33-2)
--- 454,472 ----
  C
           IF (K .GT. L) THEN
              IEL33 = (3*K*(3*K-1))/2 + 3*L
!             TEMP(9) = 0.5D0 * H(IEL33)
!             TEMP(8) = 0.5D0 * H(IEL33-1)
!             TEMP(7) = 0.5D0 * H(IEL33-2)
!             TEMP(6) = 0.5D0 * H(IEL33-K*3+1)
!             TEMP(5) = 0.5D0 * H(IEL33-K*3)
!             TEMP(4) = 0.5D0 * H(IEL33-K*3-1)
!             TEMP(3) = 0.5D0 * H(IEL33-6*K+3)
!             TEMP(2) = 0.5D0 * H(IEL33-6*K+2)
!             TEMP(1) = 0.5D0 * H(IEL33-6*K+1)
           ELSE
              IEL33 = (3*L*(3*L-1))/2 + 3*K
!             FACT = 1.0D0
!             IF (L .LT. I) FACT = 0.5D0
              TEMP(9) = FACT * H(IEL33)
              TEMP(6) = FACT * H(IEL33-1)
              TEMP(3) = FACT * H(IEL33-2)
***************
*** 495,509 ****
  C  Now, to do the diagonal term
  C
        IEL33 = (3*K*(3*K+1))/2
!       TEMP(9) = 0.5 * H(IEL33)
!       TEMP(8) = 0.5 * H(IEL33-1)
!       TEMP(7) = 0.5 * H(IEL33-2)
        TEMP(6) = TEMP(8)
!       TEMP(5) = 0.5 * H(IEL33-K*3)
!       TEMP(4) = 0.5 * H(IEL33-K*3-1)
        TEMP(3) = TEMP(7)
        TEMP(2) = TEMP(4)
!       TEMP(1) = 0.5 * H(IEL33-6*K+1)
  C
        CALL MAT33(R(1,N), TEMP, TEMP2)
  C
--- 495,509 ----
  C  Now, to do the diagonal term
  C
        IEL33 = (3*K*(3*K+1))/2
!       TEMP(9) = 0.5D0 * H(IEL33)
!       TEMP(8) = 0.5D0 * H(IEL33-1)
!       TEMP(7) = 0.5D0 * H(IEL33-2)
        TEMP(6) = TEMP(8)
!       TEMP(5) = 0.5D0 * H(IEL33-K*3)
!       TEMP(4) = 0.5D0 * H(IEL33-K*3-1)
        TEMP(3) = TEMP(7)
        TEMP(2) = TEMP(4)
!       TEMP(1) = 0.5D0 * H(IEL33-6*K+1)
  C
        CALL MAT33(R(1,N), TEMP, TEMP2)
  C
***************
*** 553,559 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION  E(NUMAT*3), V(NUMAT*NUMAT*9)
!       COMMON /SYMOPS/ R( 9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *********************************************************************
--- 553,559 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION  E(NUMAT*3), V(NUMAT*NUMAT*9)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *********************************************************************
***************
*** 598,604 ****
       1              V(J*3-1+K*NVAR)*R(6,N)+
       2              V(J*3  +K*NVAR)*R(9,N)
     10       CONTINUE
!             T2(K+1,N) = 0.0
              DO 20 I = 1, NVAR
                 T2(K+1,N) = T2(K+1,N) + T1(I)*V(I+K*NVAR)
     20    CONTINUE
--- 598,604 ----
       1              V(J*3-1+K*NVAR)*R(6,N)+
       2              V(J*3  +K*NVAR)*R(9,N)
     10       CONTINUE
!             T2(K+1,N) = 0.0D0
              DO 20 I = 1, NVAR
                 T2(K+1,N) = T2(K+1,N) + T1(I)*V(I+K*NVAR)
     20    CONTINUE
***************
*** 631,637 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DELDIP(3,*)
!       COMMON /SYMOPS/ R( 9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
--- 631,637 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION H(*), DELDIP(3,*)
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
  *****************************************************************
***************
*** 821,827 ****
        SUBROUTINE SYMP
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(9,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
        CHARACTER*5 OPER
--- 821,827 ----
        SUBROUTINE SYMP
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /SYMOPS/ R(14,120), NSYM, IPO(NUMATM,120), NENT
        COMMON /SYMOPC/ ISYMT(6)
        CHARACTER*10 ISYMT
        CHARACTER*5 OPER
***************
*** 1001,1007 ****
          GOTO 20
        ENDIF
        ANG = ACOS(TRACE)
!       AFULL = ACOS(-1.0)*2.D0
        DO 10 I = 3, 18
          ANS = I*ANG/AFULL
          IF (ABS(ANS - NINT(ANS)) .LE. 2.5D-3) THEN
--- 1001,1007 ----
          GOTO 20
        ENDIF
        ANG = ACOS(TRACE)
!       AFULL = ACOS(-1.0D0)*2.D0
        DO 10 I = 3, 18
          ANS = I*ANG/AFULL
          IF (ABS(ANS - NINT(ANS)) .LE. 2.5D-3) THEN
diff -cdN ../src.old//symtry.f ./symtry.f
*** ../src.old//symtry.f	Tue Apr 20 03:38:20 1993
--- ./symtry.f	Tue Jan 17 15:26:48 1995
***************
*** 1,7 ****
        SUBROUTINE SYMTRY
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOSYM/ NDEP, LOCPAR(MAXPAR), IDEPFN(MAXPAR),
       1         LOCDEP(MAXPAR)
  C**********************************************************************
--- 1,7 ----
        SUBROUTINE SYMTRY
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOSYM/ NDEP, LOCPAR(MAXPAR), IDEPFN(MAXPAR),
       1         LOCDEP(MAXPAR)
  C**********************************************************************
diff -cdN ../src.old//symtrz.f ./symtrz.f
*** ../src.old//symtrz.f	Tue Apr 20 03:38:20 1993
--- ./symtrz.f	Fri Jan 27 15:15:40 1995
***************
*** 167,173 ****
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        CHARACTER*4 NAME,NAMO,ISTA
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        COMMON/SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
--- 167,173 ----
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        CHARACTER*4 NAME,NAMO,ISTA
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        COMMON/SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
***************
*** 179,191 ****
        DATA TOLER,BIG/ 0.1D0,1.D35 /
        DO 2 I=1,3
        DO 1 J=1,3
!  1    CUB(I,J)=0.
!  2    CUB(I,I)=1.
        DO 3 I=1,20
        CALL R00006(I,I)
   3    IELEM(I)=0
        DO 4 I=1,3
!  4    SHIFT(I)=0.
        WMOL=0.D0
        DO 5 I=1,NUMAT
        WMOL=WMOL+ATMASS(I)
--- 179,191 ----
        DATA TOLER,BIG/ 0.1D0,1.D35 /
        DO 2 I=1,3
        DO 1 J=1,3
!  1    CUB(I,J)=0.D0
!  2    CUB(I,I)=1.D0
        DO 3 I=1,20
        CALL R00006(I,I)
   3    IELEM(I)=0
        DO 4 I=1,3
!  4    SHIFT(I)=0.D0
        WMOL=0.D0
        DO 5 I=1,NUMAT
        WMOL=WMOL+ATMASS(I)
***************
*** 198,204 ****
   6    COORD(I,K)=COORD(I,K)-SHIFT(I)
        DO 7 J=1,I
        IJ=IJ+1
!       F(IJ)=0.
        DO 7 K=1,NUMAT
        TERM=ATMASS(K)*COORD(I,K)*COORD(J,K)
   7    F(IJ)=F(IJ)+TERM
--- 198,204 ----
   6    COORD(I,K)=COORD(I,K)-SHIFT(I)
        DO 7 J=1,I
        IJ=IJ+1
!       F(IJ)=0.D0
        DO 7 K=1,NUMAT
        TERM=ATMASS(K)*COORD(I,K)*COORD(J,K)
   7    F(IJ)=F(IJ)+TERM
***************
*** 320,325 ****
--- 320,326 ----
        EW(I)=TOTAL-EW(I)
        DO 26 J=1,NUMAT
   26   COORD(I,J)=COORD(I,J)+SHIFT(I)
+       JGROUP = 0
        CALL R00008(JGROUP,NCODE)
        IF(JGROUP.LT.1) IERROR=2
        TOTAL=EW(1)*EW(2)*EW(3)/(SIG*SIG)
***************
*** 334,340 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM)
        CALL R00005(COORD,-1)
--- 335,341 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM)
        CALL R00005(COORD,-1)
***************
*** 352,363 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM),NAT(NUMATM),WINK(2)
        DATA BIG,TOLER / 1.D35,0.1/
!       DATA WINK(1),WINK(2)/ 0.955316618125, 0.6523581398          /
        GOTO (1,5),JUMP
   1    IELEM(19)=1
        INDEX=0
--- 353,364 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM),NAT(NUMATM),WINK(2)
        DATA BIG,TOLER / 1.D35,0.1/
!       DATA WINK(1),WINK(2)/ 0.955316618125D0, 0.6523581398D0        /
        GOTO (1,5),JUMP
   1    IELEM(19)=1
        INDEX=0
***************
*** 378,395 ****
        BUFF1=SQRT(R(1,3)**2+R(3,3)**2)
        IF(BUFF.GT.BUFF1) GOTO 3
        R(1,1)= R(3,3)/BUFF1
!       R(2,1)=0.
        R(3,1)=-R(1,3)/BUFF1
        GOTO 4
   3    R(1,1)= R(2,3)/BUFF
        R(2,1)=-R(1,3)/BUFF
!       R(3,1)=0.
   4    R(1,2)= R(2,3)*R(3,1)-R(2,1)*R(3,3)
        R(2,2)= R(3,3)*R(1,1)-R(3,1)*R(1,3)
        R(3,2)= R(1,3)*R(2,1)-R(1,1)*R(2,3)
        CALL R00005(COORD,1)
        RETURN
!  5    WINK2=0.
        IF(IELEM(8).LT.1) GOTO 8
        DO 6 I=1,2
        JOTA=18-4*I
--- 379,396 ----
        BUFF1=SQRT(R(1,3)**2+R(3,3)**2)
        IF(BUFF.GT.BUFF1) GOTO 3
        R(1,1)= R(3,3)/BUFF1
!       R(2,1)=0.D0
        R(3,1)=-R(1,3)/BUFF1
        GOTO 4
   3    R(1,1)= R(2,3)/BUFF
        R(2,1)=-R(1,3)/BUFF
!       R(3,1)=0.D0
   4    R(1,2)= R(2,3)*R(3,1)-R(2,1)*R(3,3)
        R(2,2)= R(3,3)*R(1,1)-R(3,1)*R(1,3)
        R(3,2)= R(1,3)*R(2,1)-R(1,1)*R(2,3)
        CALL R00005(COORD,1)
        RETURN
!  5    WINK2=0.D0
        IF(IELEM(8).LT.1) GOTO 8
        DO 6 I=1,2
        JOTA=18-4*I
***************
*** 400,407 ****
        CALL R00007(NAT,COORD,JOTA)
        IF(IELEM(JOTA).GT.0) GOTO 7
        WINK2=-WINK2
!       SINB=SIN(2.*WINK2)
!       COSB=COS(2.*WINK2)
        CALL R00002(COORD,SINB,COSB,1,3)
        CALL R00007(NAT,COORD,JOTA)
        IF(IELEM(JOTA).GT.0) GOTO 7
--- 401,408 ----
        CALL R00007(NAT,COORD,JOTA)
        IF(IELEM(JOTA).GT.0) GOTO 7
        WINK2=-WINK2
!       SINB=SIN(2.D0*WINK2)
!       COSB=COS(2.D0*WINK2)
        CALL R00002(COORD,SINB,COSB,1,3)
        CALL R00007(NAT,COORD,JOTA)
        IF(IELEM(JOTA).GT.0) GOTO 7
***************
*** 421,427 ****
        IF(IELEM(9).GT.0) GOTO 9
        WINK2=-WINK2
        GOTO 10
!  9    CALL R00002(COORD,0.707106781186,0.707106781186,1,2)
   10   CUB(1,1)=COS(WINK2)
        CUB(3,3)=CUB(1,1)
        CUB(1,3)=SIN(WINK2)
--- 422,428 ----
        IF(IELEM(9).GT.0) GOTO 9
        WINK2=-WINK2
        GOTO 10
!  9    CALL R00002(COORD,0.707106781186D0,0.707106781186D0,1,2)
   10   CUB(1,1)=COS(WINK2)
        CUB(3,3)=CUB(1,1)
        CUB(1,3)=SIN(WINK2)
***************
*** 442,448 ****
        DIMENSION HELP(3,3),FMAT(3,3)
        DO 1 I=1,3
        DO 1 J=1,3
!       HELP(I,J)=0.
        DO 1 K=1,3
        DO 1 L=1,3
   1    HELP(I,J)=HELP(I,J)+FMAT(I,L)*FMAT(J,K)*ELEM(L,K,IPLACE)
--- 443,449 ----
        DIMENSION HELP(3,3),FMAT(3,3)
        DO 1 I=1,3
        DO 1 J=1,3
!       HELP(I,J)=0.D0
        DO 1 K=1,3
        DO 1 L=1,3
   1    HELP(I,J)=HELP(I,J)+FMAT(I,L)*FMAT(J,K)*ELEM(L,K,IPLACE)
***************
*** 458,464 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM),HELP(3)
        IF(JUMP.LT.0) GOTO 3
--- 459,465 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION COORD(3,NUMATM),HELP(3)
        IF(JUMP.LT.0) GOTO 3
***************
*** 466,472 ****
        DO 1 J=1,3
   1    HELP(J)=COORD(J,I)
        DO 2 J=1,3
!       COORD(J,I)=0.
        DO 2 K=1,3
   2    COORD(J,I)=COORD(J,I)+R(K,J)*HELP(K)
        RETURN
--- 467,473 ----
        DO 1 J=1,3
   1    HELP(J)=COORD(J,I)
        DO 2 J=1,3
!       COORD(J,I)=0.D0
        DO 2 K=1,3
   2    COORD(J,I)=COORD(J,I)+R(K,J)*HELP(K)
        RETURN
***************
*** 474,480 ****
        DO 4 J=1,3
   4    HELP(J)=COORD(J,I)
        DO 5 J=1,3
!       COORD(J,I)=0.
        DO 5 K=1,3
   5    COORD(J,I)=COORD(J,I)+R(J,K)*HELP(K)
        RETURN
--- 475,481 ----
        DO 4 J=1,3
   4    HELP(J)=COORD(J,I)
        DO 5 J=1,3
!       COORD(J,I)=0.D0
        DO 5 K=1,3
   5    COORD(J,I)=COORD(J,I)+R(J,K)*HELP(K)
        RETURN
***************
*** 507,513 ****
        DATA J(1,18),J(2,18),J(3,18) /      12   ,    0   ,   -1     /
        DATA J(1,19),J(2,19),J(3,19) /       5   ,    0   ,   -1     /
        DATA J(1,20),J(2,20),J(3,20) /       0   ,    0   ,   -1     /
!       DATA TWOPI / 6.283185308 /
        DO 2 I=1,3
        DO 1 K=1,3
   1    ELEM(I,K,IPLACE)=0.
--- 508,514 ----
        DATA J(1,18),J(2,18),J(3,18) /      12   ,    0   ,   -1     /
        DATA J(1,19),J(2,19),J(3,19) /       5   ,    0   ,   -1     /
        DATA J(1,20),J(2,20),J(3,20) /       0   ,    0   ,   -1     /
!       DATA TWOPI / 6.283185308D0 /
        DO 2 I=1,3
        DO 1 K=1,3
   1    ELEM(I,K,IPLACE)=0.
***************
*** 521,528 ****
        ELEM(1,2,IPLACE)=-ELEM(2,1,IPLACE)
   3    IF((IOPER.EQ.8).OR.(IOPER.EQ.15)) CALL R00004(CUB,IPLACE)
        RETURN
!  4    ELEM(1,2,IPLACE)=1.
!       ELEM(2,1,IPLACE)=1.
        RETURN
        END
  C
--- 522,529 ----
        ELEM(1,2,IPLACE)=-ELEM(2,1,IPLACE)
   3    IF((IOPER.EQ.8).OR.(IOPER.EQ.15)) CALL R00004(CUB,IPLACE)
        RETURN
!  4    ELEM(1,2,IPLACE)=1.D0
!       ELEM(2,1,IPLACE)=1.D0
        RETURN
        END
  C
***************
*** 532,538 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION NAT(NUMATM),COORD(3,NUMATM),HELP(3),E(3,3)
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        DATA TOLER / 0.01 D0/
        IRESUL=1
--- 533,539 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        DIMENSION NAT(NUMATM),COORD(3,NUMATM),HELP(3),E(3,3)
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        DATA TOLER / 0.01 D0/
        IRESUL=1
***************
*** 932,938 ****
       .3HSIU ,         1        ,         1        ,        -1          ,
       .3HPIU ,         2        ,         0        ,        -2          ,
       .3HDEU ,         2        ,        -2        ,        -2          /
!       SIG=1.
        I=IGROUP
        IF(NCODE.LT.0) GOTO 2
        IGROUP=0
--- 933,939 ----
       .3HSIU ,         1        ,         1        ,        -1          ,
       .3HPIU ,         2        ,         0        ,        -2          ,
       .3HDEU ,         2        ,        -2        ,        -2          /
!       SIG=1.D0
        I=IGROUP
        IF(NCODE.LT.0) GOTO 2
        IGROUP=0
***************
*** 969,981 ****
        JX(2,1)=1
        JX(3,1)=0
        J2=J2+JX(2,K)
!       BUFF=1.
   3    IF(BUFF.LT.10.) GOTO 4
        NZZ=JTAB(JGROUP)
        NZ=NZZ/10
        FZ=NZ
        FN=NZZ-10*NZ
!       BUFF=2.*COS(6.283185307179*FN/FZ)
   4    T(I,K)=BUFF
        LINA=IGROUP-41
        RETURN
--- 970,982 ----
        JX(2,1)=1
        JX(3,1)=0
        J2=J2+JX(2,K)
!       BUFF=1.D0
   3    IF(BUFF.LT.10.) GOTO 4
        NZZ=JTAB(JGROUP)
        NZ=NZZ/10
        FZ=NZ
        FN=NZZ-10*NZ
!       BUFF=2.D0*COS(6.283185307179D0*FN/FZ)
   4    T(I,K)=BUFF
        LINA=IGROUP-41
        RETURN
***************
*** 988,994 ****
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION HELP(3,3),NAT(NUMATM),COORD(3,NUMATM)
--- 989,995 ----
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION HELP(3,3),NAT(NUMATM),COORD(3,NUMATM)
***************
*** 1008,1014 ****
        IF(JOT.EQ.1) GOTO 5
        DO 3 J=1,3
        DO 3 K=1,3
!       HELP(J,K)=0.
        DO 3 L=1,3
   3    HELP(J,K)=HELP(J,K)+ELEM(J,L,JOT)*ELEM(L,K,I)
        DO 4 J=1,3
--- 1009,1015 ----
        IF(JOT.EQ.1) GOTO 5
        DO 3 J=1,3
        DO 3 K=1,3
!       HELP(J,K)=0.D0
        DO 3 L=1,3
   3    HELP(J,K)=HELP(J,K)+ELEM(J,L,JOT)*ELEM(L,K,I)
        DO 4 J=1,3
***************
*** 1033,1041 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       CHARACTER*4  NAME,IFRA,NAMES, JX, NAMO, ISTA
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        COMMON/SYMRES/TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
--- 1034,1042 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       CHARACTER*4  NAME,ISTA
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        COMMON/SYMRES/TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
***************
*** 1057,1063 ****
        I=0
   3    IK=I+1
        DO 4 J=1,J1
!  4    CHAR(J)=0.
   5    I=I+1
        IF(I.GT.NORBS) GOTO 10
        DO 6 J=1,J1
--- 1058,1064 ----
        I=0
   3    IK=I+1
        DO 4 J=1,J1
!  4    CHAR(J)=0.D0
   5    I=I+1
        IF(I.GT.NORBS) GOTO 10
        DO 6 J=1,J1
***************
*** 1087,1103 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION NTYPE(MXDIM),COEFF(NCDUM,NCDUM),E(3,3,20)
        DIMENSION H(5),P(3),D(5),IP(2,3),ID(2,5),LOC(2,50)
        EQUIVALENCE (ELEM(1,1,1),E(1,1,1))
!       R00011=1.
        IF(IOPER.EQ.1) RETURN
        DO 1 I=1,NORBS
!       VECT(1,I)=0.
!  1    VECT(2,I)=0.
        DO 13 IATOM=1,NUMAT
        JATOM=JELEM(IOPER,IATOM)
        KI=0
--- 1088,1104 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION NTYPE(MXDIM),COEFF(NCDUM,NCDUM),E(3,3,20)
        DIMENSION H(5),P(3),D(5),IP(2,3),ID(2,5),LOC(2,50)
        EQUIVALENCE (ELEM(1,1,1),E(1,1,1))
!       R00011=1.D0
        IF(IOPER.EQ.1) RETURN
        DO 1 I=1,NORBS
!       VECT(1,I)=0.D0
!  1    VECT(2,I)=0.D0
        DO 13 IATOM=1,NUMAT
        JATOM=JELEM(IOPER,IATOM)
        KI=0
***************
*** 1178,1192 ****
        KI=KI-5
        GOTO 5
   13   CONTINUE
!       C1=0.
!       C2=0.
        DO 14 I=1,NORBS
        C1=C1+VECT(1,I)*VECT(1,I)
   14   C2=C2+VECT(1,I)*VECT(2,I)
        IF(ABS(C1).LT.1.E-5) GOTO 15
        R00011=C2/C1
        RETURN
!  15   R00011=100.
        RETURN
   16   IERROR=98
        RETURN
--- 1179,1193 ----
        KI=KI-5
        GOTO 5
   13   CONTINUE
!       C1=0.D0
!       C2=0.D0
        DO 14 I=1,NORBS
        C1=C1+VECT(1,I)*VECT(1,I)
   14   C2=C2+VECT(1,I)*VECT(2,I)
        IF(ABS(C1).LT.1.E-5) GOTO 15
        R00011=C2/C1
        RETURN
!  15   R00011=100.D0
        RETURN
   16   IERROR=98
        RETURN
***************
*** 1199,1208 ****
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION D(5),H(5),T1(5,5,12),S(3,3)
        IF(NDORBS.GT.0) GOTO 4
        NDORBS=1
        DO 1 I=1,3
--- 1200,1210 ----
        INCLUDE 'SIZES'
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /S00003/ IELEM(20),ELEM(3,3,20),CUB(3,3),JELEM(20,NUMATM)
        COMMON /S00004/ SHIFT(3),R(3,3),VECT(2,MXDIM)
        DIMENSION D(5),H(5),T1(5,5,12),S(3,3)
+       CHARACTER JX*4
        IF(NDORBS.GT.0) GOTO 4
        NDORBS=1
        DO 1 I=1,3
***************
*** 1216,1226 ****
        CALL R00013(S,T1,K)
   3    CONTINUE
   4    DO 5 I=1,5
!       H(I)=0.
        DO 5 J=1,5
   5    H(I)=H(I)+T1(I,J,1)*D(J)
        DO 6 I=1,5
!       D(I)=0.
        DO 6 J=1,5
   6    D(I)=D(I)+T1(I,J,IOPER)*H(J)
        RETURN
--- 1218,1228 ----
        CALL R00013(S,T1,K)
   3    CONTINUE
   4    DO 5 I=1,5
!       H(I)=0.D0
        DO 5 J=1,5
   5    H(I)=H(I)+T1(I,J,1)*D(J)
        DO 6 I=1,5
!       D(I)=0.D0
        DO 6 J=1,5
   6    D(I)=D(I)+T1(I,J,IOPER)*H(J)
        RETURN
***************
*** 1232,1239 ****
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        DIMENSION R(3,3),T(5,5,12),F(2,4)
        LOGICAL RIGHT
!       DATA PI,TOL,S12 / 3.1415926536 ,0.001,3.46410161513 /
!       DATA S3,ONE     / 1.73205080756 , 1. /
        R1=R(2,1)*R(3,2)-R(3,1)*R(2,2)
        R2=R(3,1)*R(1,2)-R(1,1)*R(3,2)
        R3=R(1,1)*R(2,2)-R(2,1)*R(1,2)
--- 1234,1241 ----
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        DIMENSION R(3,3),T(5,5,12),F(2,4)
        LOGICAL RIGHT
!       DATA PI,TOL,S12 / 3.1415926536D0 ,0.001D0,3.46410161513D0 /
!       DATA S3,ONE     / 1.73205080756D0 , 1.D0 /
        R1=R(2,1)*R(3,2)-R(3,1)*R(2,2)
        R2=R(3,1)*R(1,2)-R(1,1)*R(3,2)
        R3=R(1,1)*R(2,2)-R(2,1)*R(1,2)
***************
*** 1245,1251 ****
        ARG=R3
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
        B= ACOS(ARG)
!       SINA=SQRT(1.-ARG*ARG)
        IF(SINA.LT.TOL) GOTO 1
        ARG=R(3,2)/SINA
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
--- 1247,1253 ----
        ARG=R3
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
        B= ACOS(ARG)
!       SINA=SQRT(1.D0-ARG*ARG)
        IF(SINA.LT.TOL) GOTO 1
        ARG=R(3,2)/SINA
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
***************
*** 1257,1263 ****
   1    ARG=R(1,2)
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
        G= ASIN(ARG)
!       A=0.
   2    F(1,1)=A
        F(1,2)=A
        F(1,3)=PI-A
--- 1259,1265 ----
   1    ARG=R(1,2)
        IF(ABS(ARG).GT.ONE) ARG=SIGN(ONE,ARG)
        G= ASIN(ARG)
!       A=0.D0
   2    F(1,1)=A
        F(1,2)=A
        F(1,3)=PI-A
***************
*** 1279,1318 ****
   4    G=-G
        A=-A
        B=-B
!       E1=COS(B*0.5)
!       X1=-SIN(B*0.5)
        E2=E1*E1
        E3=E1*E2
        E4=E2*E2
        X2=X1*X1
        X3=X1*X2
        X4=X2*X2
!       TA=2.*A
!       TG=2.*G
        T(1,1,IOPER)=E4*COS(TA+TG)+X4*COS(TA-TG)
!       T(1,2,IOPER)=2.*E3*X1*COS(A+TG)-2.*E1*X3*COS(A-TG)
!       T(1,3,IOPER)=2.*S3*E2*X2*COS(TG)
!       T(1,4,IOPER)=2.*E3*X1*SIN(A+TG)-2.*E1*X3*SIN(A-TG)
        T(1,5,IOPER)=E4*SIN(TA+TG)+X4*SIN(TA-TG)
!       T(2,1,IOPER)=2.*E1*X3*COS(TA-G)-2.*E3*X1*COS(TA+G)
!       T(2,2,IOPER)=(E4-3.*E2*X2)*COS(A+G)-(3.*E2*X2-X4)*COS(A-G)
!       T(2,3,IOPER)=2.*S3*(E3*X1-E1*X3)*COS(G)
!       T(2,4,IOPER)=(E4-3.*E2*X2)*SIN(A+G)-(3.*E2*X2-X4)*SIN(A-G)
!       T(2,5,IOPER)=-2.*E3*X1*SIN(TA+G)+2.*E1*X3*SIN(TA-G)
        T(3,1,IOPER)=S12*E2*X2*COS(TA)
        T(3,2,IOPER)=-S12*(E3*X1-E1*X3)*COS(A)
!       T(3,3,IOPER)=E4-4.*E2*X2+X4
        T(3,4,IOPER)=-S12*(E3*X1-E1*X3)*SIN(A)
        T(3,5,IOPER)=S12*E2*X2*SIN(TA)
!       T(4,1,IOPER)=2.*E1*X3*SIN(TA-G)+2.*E3*X1*SIN(TA+G)
!       T(4,2,IOPER)=-(E4-3.*E2*X2)*SIN(A+G)-(3.*E2*X2-X4)*SIN(A-G)
!       T(4,3,IOPER)=-2.*S3*(E3*X1-E1*X3)*SIN(G)
!       T(4,4,IOPER)=(E4-3.*E2*X2)*COS(A+G)+(3.*E2*X2-X4)*COS(A-G)
!       T(4,5,IOPER)=-2.*E3*X1*COS(TA+G)-2.*E1*X3*COS(TA-G)
        T(5,1,IOPER)=-E4*SIN(TA+TG)+X4*SIN(TA-TG)
!       T(5,2,IOPER)=-2.*E3*X1*SIN(A+TG)-2.*E1*X3*SIN(A-TG)
!       T(5,3,IOPER)=-2.*S3*E2*X2*SIN(TG)
!       T(5,4,IOPER)=2.*E3*X1*COS(A+TG)+2.*E1*X3*COS(A-TG)
        T(5,5,IOPER)=E4*COS(TA+TG)-X4*COS(TA-TG)
        IF(RIGHT) RETURN
        DO 5 I=1,5
--- 1281,1320 ----
   4    G=-G
        A=-A
        B=-B
!       E1=COS(B*0.5D0)
!       X1=-SIN(B*0.5D0)
        E2=E1*E1
        E3=E1*E2
        E4=E2*E2
        X2=X1*X1
        X3=X1*X2
        X4=X2*X2
!       TA=2.D0*A
!       TG=2.D0*G
        T(1,1,IOPER)=E4*COS(TA+TG)+X4*COS(TA-TG)
!       T(1,2,IOPER)=2.D0*E3*X1*COS(A+TG)-2.D0*E1*X3*COS(A-TG)
!       T(1,3,IOPER)=2.D0*S3*E2*X2*COS(TG)
!       T(1,4,IOPER)=2.D0*E3*X1*SIN(A+TG)-2.D0*E1*X3*SIN(A-TG)
        T(1,5,IOPER)=E4*SIN(TA+TG)+X4*SIN(TA-TG)
!       T(2,1,IOPER)=2.D0*E1*X3*COS(TA-G)-2.D0*E3*X1*COS(TA+G)
!       T(2,2,IOPER)=(E4-3.D0*E2*X2)*COS(A+G)-(3.D0*E2*X2-X4)*COS(A-G)
!       T(2,3,IOPER)=2.D0*S3*(E3*X1-E1*X3)*COS(G)
!       T(2,4,IOPER)=(E4-3.D0*E2*X2)*SIN(A+G)-(3.D0*E2*X2-X4)*SIN(A-G)
!       T(2,5,IOPER)=-2.D0*E3*X1*SIN(TA+G)+2.D0*E1*X3*SIN(TA-G)
        T(3,1,IOPER)=S12*E2*X2*COS(TA)
        T(3,2,IOPER)=-S12*(E3*X1-E1*X3)*COS(A)
!       T(3,3,IOPER)=E4-4.D0*E2*X2+X4
        T(3,4,IOPER)=-S12*(E3*X1-E1*X3)*SIN(A)
        T(3,5,IOPER)=S12*E2*X2*SIN(TA)
!       T(4,1,IOPER)=2.D0*E1*X3*SIN(TA-G)+2.D0*E3*X1*SIN(TA+G)
!       T(4,2,IOPER)=-(E4-3.D0*E2*X2)*SIN(A+G)-(3.D0*E2*X2-X4)*SIN(A-G)
!       T(4,3,IOPER)=-2.D0*S3*(E3*X1-E1*X3)*SIN(G)
!       T(4,4,IOPER)=(E4-3.D0*E2*X2)*COS(A+G)+(3.D0*E2*X2-X4)*COS(A-G)
!       T(4,5,IOPER)=-2.D0*E3*X1*COS(TA+G)-2.D0*E1*X3*COS(TA-G)
        T(5,1,IOPER)=-E4*SIN(TA+TG)+X4*SIN(TA-TG)
!       T(5,2,IOPER)=-2.D0*E3*X1*SIN(A+TG)-2.D0*E1*X3*SIN(A-TG)
!       T(5,3,IOPER)=-2.D0*S3*E2*X2*SIN(TG)
!       T(5,4,IOPER)=2.D0*E3*X1*COS(A+TG)+2.D0*E1*X3*COS(A-TG)
        T(5,5,IOPER)=E4*COS(TA+TG)-X4*COS(TA-TG)
        IF(RIGHT) RETURN
        DO 5 I=1,5
***************
*** 1334,1370 ****
        IJ=IJ+1
        A(I,J)=F(IJ)
        A(J,I)=F(IJ)
!       V(I,J)=0.
!  1    V(J,I)=0.
!  2    V(J,J)=1.
        N1=N-1
!       ZETA=10.
!  3    SS=0.
        DO 4 J=1,N1
        DO 4 I=J,N1
        IRG=I+1
   4    SS=SS+ABS(A(IRG,J))
        IF(SS-TOLER) 21,21,5
!  5    TAU=0.
        DO 20 I=1,N
        I1=I+1
        IF(N-I1) 20,6,6
   6    DO 19 J=I1,N
        IF(ABS(A(J,I)).LT.1.E-30) GOTO 19
!       THETA=0.5*(A(J,J)-A(I,I))/A(J,I)
        IF(ABS(THETA)-ZETA) 7,7,19
!  7    T=1.
        IF(THETA) 8,9,9
!  8    T=-1.
!  9    T=1./(THETA+T*SQRT(1.+THETA*THETA))
!       C=1./SQRT(1.+T*T)
        S=C*T
!       H=2.*A(J,I)
        HC=S*H*(S*THETA-C)
        A(I,I)=A(I,I)+HC
        A(J,J)=A(J,J)-HC
!       A(J,I)=-H*C*(S*THETA-0.5*(C-S*S/C))
!       TAU=TAU+1.
        IF(I.LT.2) GOTO 11
        DO 10 IG=2,I
        IRS=IG-1
--- 1336,1372 ----
        IJ=IJ+1
        A(I,J)=F(IJ)
        A(J,I)=F(IJ)
!       V(I,J)=0.D0
!  1    V(J,I)=0.D0
!  2    V(J,J)=1.D0
        N1=N-1
!       ZETA=10.D0
!  3    SS=0.D0
        DO 4 J=1,N1
        DO 4 I=J,N1
        IRG=I+1
   4    SS=SS+ABS(A(IRG,J))
        IF(SS-TOLER) 21,21,5
!  5    TAU=0.D0
        DO 20 I=1,N
        I1=I+1
        IF(N-I1) 20,6,6
   6    DO 19 J=I1,N
        IF(ABS(A(J,I)).LT.1.E-30) GOTO 19
!       THETA=0.5D0*(A(J,J)-A(I,I))/A(J,I)
        IF(ABS(THETA)-ZETA) 7,7,19
!  7    T=1.D0
        IF(THETA) 8,9,9
!  8    T=-1.D0
!  9    T=1.D0/(THETA+T*SQRT(1.D0+THETA*THETA))
!       C=1.D0/SQRT(1.D0+T*T)
        S=C*T
!       H=2.D0*A(J,I)
        HC=S*H*(S*THETA-C)
        A(I,I)=A(I,I)+HC
        A(J,J)=A(J,J)-HC
!       A(J,I)=-H*C*(S*THETA-0.5D0*(C-S*S/C))
!       TAU=TAU+1.D0
        IF(I.LT.2) GOTO 11
        DO 10 IG=2,I
        IRS=IG-1
***************
*** 1389,1396 ****
   18   V(IG,I)=H
   19   CONTINUE
   20   CONTINUE
!       H=0.5*FLOAT(N*(N-1))
!       ZETA=ZETA**(2.5-TAU/H)
        GOTO 3
   21   DO 22 J=1,N
   22   EW(J)=A(J,J)
--- 1391,1398 ----
   18   V(IG,I)=H
   19   CONTINUE
   20   CONTINUE
!       H=0.5D0*FLOAT(N*(N-1))
!       ZETA=ZETA**(2.5D0-TAU/H)
        GOTO 3
   21   DO 22 J=1,N
   22   EW(J)=A(J,J)
***************
*** 1421,1427 ****
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        CHARACTER*4 NAME,NAMO,ISTA
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /SYMINF/ IBASE(2,12),NBASE,IVIBRO(2,12),IVIB
        COMMON/SYMRES/TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
        DIMENSION CHAR(12),COEFF(12)
--- 1423,1429 ----
        PARAMETER (MXDIM=MAXPAR+NUMATM)
        CHARACTER*4 NAME,NAMO,ISTA
        COMMON /S00001/         T(12,12),JX(7,12),LINA,I1,J1,J2
!       COMMON /S00002/ NUMAT,NORBS,NADIM,NCDIM,IQUAL,NDORBS,IERROR
        COMMON /SYMINF/ IBASE(2,12),NBASE,IVIBRO(2,12),IVIB
        COMMON/SYMRES/TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDEX(MXDIM),ISTA(2)
        DIMENSION CHAR(12),COEFF(12)
***************
*** 1439,1455 ****
        GOTO 5
   3    JP=JX(5,I)/10
        JK=JX(5,I)-10*JP
!       ANGLE=2.*COS(6.283185308*FLOAT(JK)/FLOAT(JP))
!       CHAR(I)=FLOAT(JX(6,I))*(ANGLE-1.)
        GOTO 5
   4    JP=JX(5,I)/10
        JK=JX(5,I)-10*JP
!       ANGLE=2.*COS(6.283185308*FLOAT(JK)/FLOAT(JP))
!       CHAR(I)=FLOAT(JX(6,I)-2)*(ANGLE+1.)
!  5    CHAR(I)=CHAR(I)*FLOAT(JX(2,I))
!       ORDER=FLOAT(J2)
        DO 7 I=1,I1
!       COEFF(I)=0.1
        DO 6 J=1,J1
   6    COEFF(I)=COEFF(I)+CHAR(J)*T(I,J)/ORDER
        IF(COEFF(I).LT.1.) GOTO 7
--- 1441,1457 ----
        GOTO 5
   3    JP=JX(5,I)/10
        JK=JX(5,I)-10*JP
!       ANGLE=2.D0*COS(6.283185308D0*DBLE(JK)/DBLE(JP))
!       CHAR(I)=DBLE(JX(6,I))*(ANGLE-1.D0)
        GOTO 5
   4    JP=JX(5,I)/10
        JK=JX(5,I)-10*JP
!       ANGLE=2.D0*COS(6.283185308D0*DBLE(JK)/DBLE(JP))
!       CHAR(I)=DBLE(JX(6,I)-2)*(ANGLE+1.D0)
!  5    CHAR(I)=CHAR(I)*DBLE(JX(2,I))
!       ORDER=DBLE(J2)
        DO 7 I=1,I1
!       COEFF(I)=0.1D0
        DO 6 J=1,J1
   6    COEFF(I)=COEFF(I)+CHAR(J)*T(I,J)/ORDER
        IF(COEFF(I).LT.1.) GOTO 7
Binary files ../src.old//temp.dvi and ./temp.dvi differ
diff -cdN ../src.old//test.csh ./test.csh
*** ../src.old//test.csh	Fri Apr  2 01:46:52 1993
--- ./test.csh	Tue Jan 17 16:29:42 1995
***************
*** 15,21 ****
  setenv FOR020 $job.ump
  setenv SETUP  SETUP.DAT
  setenv SHUTDOWN $job.end
! time mopac.exe $job <$job.dat 
  #time mopac.exe $job <$job.dat &
  #sleep 5
  #tail -67f $job.out
--- 15,21 ----
  setenv FOR020 $job.ump
  setenv SETUP  SETUP.DAT
  setenv SHUTDOWN $job.end
! time ./mopac $job <$job.dat 
  #time mopac.exe $job <$job.dat &
  #sleep 5
  #tail -67f $job.out
diff -cdN ../src.old//test_cos.out ./test_cos.out
*** ../src.old//test_cos.out	Fri Apr  2 01:47:40 1993
--- ./test_cos.out
***************
*** 1,184 ****
-  *******************************************************************************
-  ** MOPAC (PUBLIC DOMAIN) FOR DEVELOPMENT USE ONLY.  NOT FOR PRODUCTION WORK  **
-  *******************************************************************************
- 
-                                  AM1 CALCULATION RESULTS
- 
- 
-  *******************************************************************************
-  *          MOPAC:  VERSION  7.00               CALC'D. Fri Apr  2 08:47:31 1993
-  *  DEBUG    - DEBUG OPTION TURNED ON
-  *
-  *
-  *
-  *                 CHARGE ON SYSTEM =  1
-  *
-  *
-  *
-  *  GRADIENTS- ALL GRADIENTS TO BE PRINTED
-  *   T=      - A TIME OF  3600.0 SECONDS REQUESTED
-  *  DUMP=N   - RESTART FILE WRITTEN EVERY  3600.0 SECONDS
-  *  1SCF     - DO 1 SCF AND THEN STOP 
-  *  AM1      - THE AM1 HAMILTONIAN TO BE USED
-  *  DEBUG KEYWORDS USED:   NSPA=60 EPS=78.4
-  ***********************************************************************030BY030
-      DEBUG NSPA=60 GRADIENTS 1SCF  EPS=78.4 AM1 CHARGE=1
-  Ammonia (solution phase geometry)
-  Heat of Formation should be 59.766 kcal/mol and the gradient should be small.
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      H       
-       2      N         1.01578  *                                  1
-       3      H         1.01578  *     109.47122  *                 2    1
-       4      H         1.01578  *     109.47122  * -120.00000  *   2    1    3
-       5      H         1.01578  *     109.47122  *  120.00000  *   2    1    3
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM         X         Y         Z
- 
-      1         H        0.0000    0.0000    0.0000
-      2         N        1.0158    0.0000    0.0000
-      3         H        1.3544    0.9577    0.0000
-      4         H        1.3544   -0.4788   -0.8294
-      5         H        1.3544   -0.4788    0.8294
- 
- 
-      MOLECULAR POINT GROUP   :   TD  
-   H: (AM1): M.J.S. DEWAR ET AL, J. AM. CHEM. SOC. 107 3902-3909 (1985)          
-   N: (AM1): M.J.S. DEWAR ET AL, J. AM. CHEM. SOC. 107 3902-3909 (1985)          
- 
- 
-           RHF CALCULATION, NO. OF DOUBLY OCCUPIED LEVELS =  4
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   H  1       N  2       H  3       H  4       H  5
-  ------------------------------------------------------------------
-      H    1   0.000000
-      N    2   1.015785   0.000000
-      H    3   1.658769   1.015785   0.000000
-      H    4   1.658769   1.015785   1.658769   0.000000
-      H    5   1.658769   1.015785   1.658769   1.658769   0.000000
- 
-  -------------------------------------------------------------------------------
-      DEBUG NSPA=60 GRADIENTS 1SCF  EPS=78.4 AM1 CHARGE=1
-  Ammonia (solution phase geometry)
-  Heat of Formation should be 59.766 kcal/mol and the gradient should be small.
- 
- 
-      1SCF WAS SPECIFIED, SO BFGS WAS NOT USED                 
-      SCF FIELD WAS ACHIEVED                                   
- 
- 
-                                 AM1    CALCULATION
-                                                        VERSION  7.00
-                                                        Fri Apr  2 08:47:39 1993
- 
- 
- 
- 
-           FINAL HEAT OF FORMATION =         59.76636 KCAL
- 
- 
-           TOTAL ENERGY            =       -259.34423 EV
-           ELECTRONIC ENERGY       =       -193.12913 EV
-           CORE-CORE REPULSION     =        -66.21510 EV
- 
-           GRADIENT NORM           =          0.34934
-           IONIZATION POTENTIAL    =         16.97079
-           NO. OF FILLED LEVELS    =          4
-           MOLECULAR WEIGHT        =     18.038
- 
- 
-           SCF CALCULATIONS  =                2
-           COMPUTATION TIME =   7.040 SECONDS
- 
- 
- 
-        FINAL  POINT  AND  DERIVATIVES
- 
-    PARAMETER     ATOM    TYPE            VALUE       GRADIENT
-       1          2  N    BOND            1.015785     0.180670  KCAL/ANGSTROM
-       2          3  H    BOND            1.015785     0.095515  KCAL/ANGSTROM
-       3          3  H    ANGLE         109.471221    -0.137652  KCAL/RADIAN  
-       4          4  H    BOND            1.015785     0.050770  KCAL/ANGSTROM
-       5          4  H    ANGLE         109.471221    -0.092758  KCAL/RADIAN  
-       6          4  H    DIHEDRAL     -120.000000     0.079078  KCAL/RADIAN  
-       7          5  H    BOND            1.015785     0.199945  KCAL/ANGSTROM
-       8          5  H    ANGLE         109.471221    -0.057039  KCAL/RADIAN  
-       9          5  H    DIHEDRAL      120.000000     0.025699  KCAL/RADIAN  
- 
- 
- 
- 
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      H       
-       2      N         1.01578  *                                  1
-       3      H         1.01578  *     109.47122  *                 2    1
-       4      H         1.01578  *     109.47122  * -120.00000  *   2    1    3
-       5      H         1.01578  *     109.47122  *  120.00000  *   2    1    3
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   H  1       N  2       H  3       H  4       H  5
-  ------------------------------------------------------------------
-      H    1   0.000000
-      N    2   1.015785   0.000000
-      H    3   1.658769   1.015785   0.000000
-      H    4   1.658769   1.015785   1.658769   0.000000
-      H    5   1.658769   1.015785   1.658769   1.658769   0.000000
- 
- 
-       MOLECULAR POINT GROUP   :   TD  
- 
- 
-                   EIGENVALUES
- 
-  -35.52091 -16.97489 -16.97378 -16.97079   3.14110   5.20916   5.21101   5.21595
- 
- 
-               NET ATOMIC CHARGES AND DIPOLE CONTRIBUTIONS
- 
-          ATOM NO.   TYPE          CHARGE        ATOM  ELECTRON DENSITY
-            1          H           0.2668          0.7332
-            2          N          -0.0683          5.0683
-            3          H           0.2672          0.7328
-            4          H           0.2676          0.7324
-            5          H           0.2668          0.7332
-  DIPOLE           X         Y         Z       TOTAL
-  POINT-CHG.     0.002     0.000    -0.003     0.004
-  HYBRID         0.000     0.000     0.001     0.001
-  SUM            0.002     0.000    -0.003     0.003
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM               X         Y         Z
- 
-      1         H                 -1.0158    0.0000    0.0000
-      2         N                  0.0000    0.0000    0.0000
-      3         H                  0.3386    0.9577    0.0000
-      4         H                  0.3386   -0.4788   -0.8294
-      5         H                  0.3386   -0.4788    0.8294
- 
- 
-           ATOMIC ORBITAL ELECTRON POPULATIONS
- 
-    0.73320   1.40630   1.22037   1.22073   1.22090   0.73285   0.73244   0.73322
- 
- 
- 
-  TOTAL CPU TIME:             7.11 SECONDS
- 
-  == MOPAC DONE ==
--- 0 ----
diff -cdN ../src.old//test_ef_.out ./test_ef_.out
*** ../src.old//test_ef_.out	Fri Apr  2 01:53:50 1993
--- ./test_ef_.out
***************
*** 1,164 ****
-  *******************************************************************************
-  ** MOPAC (PUBLIC DOMAIN) FOR DEVELOPMENT USE ONLY.  NOT FOR PRODUCTION WORK  **
-  *******************************************************************************
- 
-                                 MNDO CALCULATION RESULTS
- 
- 
-  *******************************************************************************
-  *          MOPAC:  VERSION  7.00               CALC'D. Fri Apr  2 08:53:45 1993
-  *  GEO-OK   - OVERRIDE INTERATOMIC DISTANCE CHECK
-  *   XYZ     - CARTESIAN COORDINATE SYSTEM TO BE USED
-  *   T=      - A TIME OF  3600.0 SECONDS REQUESTED
-  *  DUMP=N   - RESTART FILE WRITTEN EVERY  3600.0 SECONDS
-  *  EF       - USE EF ROUTINE FOR MINIMUM SEARCH
-  *  NOINTER  - INTERATOMIC DISTANCES NOT TO BE PRINTED
-  ***********************************************************************030BY030
-       GEO-OK XYZ NOINTER  EF
-  Test of optimizing all cartesian coordinates
-  Heat should be -56.993
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      H       
-       2      C         1.10000  *                                  1
-       3      F         1.30000  *     112.61986  *                 2    1
-       4     Cl         1.68819  *     107.22798  * -119.74488  *   2    1    3
-       5     Br         1.87083  *     105.50136  *  123.69007  *   2    1    3
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM         X         Y         Z
- 
-      1         H        0.0000    0.0000    0.0000
-      2         C        1.1000    0.0000    0.0000
-      3         F        1.6000    1.2000    0.0000
-      4        Cl        1.6000   -0.8000   -1.4000
-      5        Br        1.6000   -1.0000    1.5000
- 
- 
-      MOLECULAR POINT GROUP   :   C1  
-   H: (MNDO):  M.J.S. DEWAR, W. THIEL, J. AM. CHEM. SOC., 99, 4899, (1977)       
-   C: (MNDO):  M.J.S. DEWAR, W. THIEL, J. AM. CHEM. SOC., 99, 4899, (1977)       
-   F: (MNDO):  M.J.S. DEWAR, H.S. RZEPA, J. AM. CHEM. SOC., 100, 777, (1978)     
-  Cl: (MNDO): M.J.S.DEWAR, H.S.RZEPA, J. COMP. CHEM., 4, 158, (1983)             
-  Br: (MNDO): M.J.S.DEWAR, E.F. HEALY, J. COMP. CHEM., 4, 542, (1983)            
- 
- 
-           RHF CALCULATION, NO. OF DOUBLY OCCUPIED LEVELS = 13
- 
-           DIAGONAL MATRIX USED AS START HESSIAN
- 
-  CYCLE:   1 TIME:   0.43 TIME LEFT:   3599.6 GRAD.:   153.116 HEAT:-48.24605    
-  CYCLE:   2 TIME:   0.27 TIME LEFT:   3599.3 GRAD.:   128.932 HEAT:-51.79969    
-  CYCLE:   3 TIME:   0.28 TIME LEFT:   3599.0 GRAD.:    68.324 HEAT:-54.74900    
-  CYCLE:   4 TIME:   0.31 TIME LEFT:   3598.7 GRAD.:    19.852 HEAT:-56.64223    
-  CYCLE:   5 TIME:   0.33 TIME LEFT:   3598.4 GRAD.:     5.923 HEAT:-56.85348    
-  CYCLE:   6 TIME:   0.30 TIME LEFT:   3598.1 GRAD.:     5.057 HEAT:-56.88486    
-  CYCLE:   7 TIME:   0.32 TIME LEFT:   3597.8 GRAD.:     4.593 HEAT:-56.92380    
-  CYCLE:   8 TIME:   0.32 TIME LEFT:   3597.4 GRAD.:     2.256 HEAT:-56.97384    
-  CYCLE:   9 TIME:   0.29 TIME LEFT:   3597.1 GRAD.:     1.454 HEAT:-56.98052    
-  CYCLE:  10 TIME:   0.28 TIME LEFT:   3596.9 GRAD.:     1.295 HEAT:-56.98650    
-  CYCLE:  11 TIME:   0.29 TIME LEFT:   3596.6 GRAD.:     1.218 HEAT:-56.99114    
-  CYCLE:  12 TIME:   0.28 TIME LEFT:   3596.3 GRAD.:     0.890 HEAT:-56.99334    
- 
-      RMS GRADIENT =  0.89032  IS LESS THAN CUTOFF =  1.00000
- 
- 
- 
-  -------------------------------------------------------------------------------
-       GEO-OK XYZ NOINTER  EF
-  Test of optimizing all cartesian coordinates
-  Heat should be -56.993
- 
- 
-      GEOMETRY OPTIMISED USING EIGENVECTOR FOLLOWING (EF).     
-      SCF FIELD WAS ACHIEVED                                   
- 
- 
-                                MNDO    CALCULATION
-                                                        VERSION  7.00
-                                                        Fri Apr  2 08:53:50 1993
- 
- 
- 
- 
-           FINAL HEAT OF FORMATION =        -56.99334 KCAL
- 
- 
-           TOTAL ENERGY            =      -1324.26642 EV
-           ELECTRONIC ENERGY       =      -2849.75635 EV
-           CORE-CORE REPULSION     =       1525.48993 EV
- 
-           IONIZATION POTENTIAL    =         12.33069
-           NO. OF FILLED LEVELS    =         13
-           MOLECULAR WEIGHT        =    147.374
- 
- 
-           SCF CALCULATIONS  =               13
-           COMPUTATION TIME =   3.840 SECONDS
- 
- 
- 
- 
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      H       
-       2      C         1.11628  *                                  1
-       3      F         1.32986  *     112.39404  *                 2    1
-       4     Cl         1.81072  *     106.46343  * -121.44477  *   2    1    3
-       5     Br         1.90235  *     106.27491  *  123.19352  *   2    1    3
- 
- 
-       MOLECULAR POINT GROUP   :   C1  
- 
- 
-                   EIGENVALUES
- 
-  -48.02002 -29.36448 -26.33058 -24.89318 -19.24703 -18.86622 -18.64484 -14.98129
-  -14.53210 -13.51194 -12.97175 -12.53882 -12.33069  -0.95526  -0.37448   2.27183
-    3.57723
- 
- 
-               NET ATOMIC CHARGES AND DIPOLE CONTRIBUTIONS
- 
-          ATOM NO.   TYPE          CHARGE        ATOM  ELECTRON DENSITY
-            1          H           0.0785          0.9215
-            2          C           0.3232          3.6768
-            3          F          -0.1738          7.1738
-            4         Cl          -0.1565          7.1565
-            5         Br          -0.0714          7.0714
-  DIPOLE           X         Y         Z       TOTAL
-  POINT-CHG.    -1.412    -0.002     0.590     1.530
-  HYBRID        -0.063     0.004    -0.127     0.142
-  SUM           -1.475     0.002     0.463     1.546
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM               X         Y         Z
- 
-      1         H                 -1.1800    0.1200   -0.0200
-      2         C                 -0.0637    0.1200   -0.0200
-      3         F                  0.4429    1.3496   -0.0200
-      4        Cl                  0.4494   -0.7859   -1.5015
-      5        Br                  0.4694   -0.8797    1.5081
- 
- 
-           ATOMIC ORBITAL ELECTRON POPULATIONS
- 
-    0.92154   1.24063   0.90933   0.72569   0.80114   1.88369   1.88433   1.46292
-    1.94282   1.98745   1.93573   1.77829   1.45507   1.99047   1.93547   1.73483
-    1.41061
- 
- 
- 
-  TOTAL CPU TIME:             3.87 SECONDS
- 
-  == MOPAC DONE ==
--- 0 ----
diff -cdN ../src.old//test_gre.out ./test_gre.out
*** ../src.old//test_gre.out	Fri Apr  2 01:55:22 1993
--- ./test_gre.out
***************
*** 1,522 ****
-  *******************************************************************************
-  ** MOPAC (PUBLIC DOMAIN) FOR DEVELOPMENT USE ONLY.  NOT FOR PRODUCTION WORK  **
-  *******************************************************************************
- 
-                                  PM3 CALCULATION RESULTS
- 
- 
-  *******************************************************************************
-  *          MOPAC:  VERSION  7.00               CALC'D. Fri Apr  2 08:54:22 1993
-  *  VECTORS  - FINAL EIGENVECTORS TO BE PRINTED
-  *  GREEN    - RUN DANOVICH'S GREEN'S FUNCTION CALCN.
-  *   T=      - A TIME OF  3600.0 SECONDS REQUESTED
-  *  DUMP=N   - RESTART FILE WRITTEN EVERY  3600.0 SECONDS
-  *  1SCF     - DO 1 SCF AND THEN STOP 
-  *  PM3      - THE PM3 HAMILTONIAN TO BE USED
-  *  PRECISE  - CRITERIA TO BE INCREASED BY 100 TIMES
-  ***********************************************************************030BY030
-  1SCF  PM3 PRECISE GREENF VECT
-  TEST FOR MOPAC 7.0 FOR J.J.P.STEWART
-   dimethoxy-s-tetrazine method OVGF(PM3)
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      C       
-       2      N         1.37642  *                                  1
-       3      N         1.28602  *     118.36407  *                 2    1
-       4      C         1.37955  *     118.51027  *    0.00317  *   3    2    1
-       5      N         1.37625  *     123.12897  *   -0.00211  *   4    3    2
-       6      N         1.28617  *     118.35611  *   -0.00012  *   5    4    3
-       7      O         1.35392  *     112.34420  *  179.99563  *   1    2    3
-       8      O         1.35390  *     124.53025  * -179.99976  *   4    3    2
-       9      C         1.41426  *     117.59432  *  179.99799  *   7    1    2
-      10      H         1.09535  *     112.24034  *   62.17779  *   9    7    1
-      11      H         1.09534  *     112.23293  *  -62.21587  *   9    7    1
-      12      H         1.09377  *     101.50305  *  179.98192  *   9    7    1
-      13      C         1.41425  *     117.59651  *   -0.00905  *   8    4    3
-      14      H         1.09535  *     112.23477  *   62.20685  *  13    8    4
-      15      H         1.09535  *     112.23416  *  -62.19005  *  13    8    4
-      16      H         1.09378  *     101.50562  * -179.98986  *  13    8    4
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM         X         Y         Z
- 
-      1         C        0.0000    0.0000    0.0000
-      2         N        1.3764    0.0000    0.0000
-      3         N        1.9874    1.1316    0.0000
-      4         C        1.2335    2.2870    0.0001
-      5         N       -0.1428    2.2870    0.0001
-      6         N       -0.7537    1.1552    0.0000
-      7         O       -0.5147   -1.2523   -0.0001
-      8         O        1.7482    3.5392    0.0001
-      9         C       -1.9230   -1.3817   -0.0001
-     10         H       -2.3792   -0.9483   -0.8967
-     11         H       -2.3790   -0.9490    0.8970
-     12         H       -2.0422   -2.4689   -0.0005
-     13         C        3.1565    3.6687    0.0002
-     14         H        3.6126    3.2358   -0.8967
-     15         H        3.6125    3.2356    0.8971
-     16         H        3.2756    4.7560    0.0004
- 
- 
-      MOLECULAR POINT GROUP   :   C2H 
-   H: (PM3): J. J. P. STEWART, J. COMP. CHEM.     10, 209 (1989).                
-   C: (PM3): J. J. P. STEWART, J. COMP. CHEM.     10, 209 (1989).                
-   N: (PM3): J. J. P. STEWART, J. COMP. CHEM.     10, 209 (1989).                
-   O: (PM3): J. J. P. STEWART, J. COMP. CHEM.     10, 209 (1989).                
- 
- 
-           RHF CALCULATION, NO. OF DOUBLY OCCUPIED LEVELS = 27
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   C  1       N  2       N  3       C  4       N  5       N  6
-  ------------------------------------------------------------------------------
-      C    1   0.000000
-      N    2   1.376420   0.000000
-      N    3   2.286971   1.286020   0.000000
-      C    4   2.598401   2.291429   1.379550   0.000000
-      N    5   2.291498   2.745636   2.423323   1.376250   0.000000
-      N    6   1.379360   2.423218   2.741176   2.286855   1.286170   0.000000
-      O    7   1.353920   2.268165   3.455924   3.947448   3.558800   2.419331
-      O    8   3.947428   3.558684   2.419435   1.353900   2.267961   3.455837
-      C    9   2.367938   3.577080   4.648448   4.839688   4.077853   2.793434
-      H   10   2.713667   3.975943   4.919074   4.931811   4.034034   2.805587
-      H   11   2.713816   3.975960   4.919223   4.932142   4.034511   2.806064
-      H   12   3.204081   4.216925   5.403827   5.774820   5.121241   3.846399
-      C   13   4.839700   4.077731   2.793471   2.367939   3.576884   4.648342
-      H   14   4.932082   4.034233   2.805887   2.713798   3.975828   4.919102
-      H   15   4.931906   4.034071   2.805767   2.713673   3.975677   4.918931
-      H   16   5.774848   5.121142   3.846470   3.204105   4.216753   5.403770
- 0
-                   O  7       O  8       C  9       H 10       H 11       H 12
-  ------------------------------------------------------------------------------
-      O    7   0.000000
-      O    8   5.298962   0.000000
-      C    9   1.414260   6.139470   0.000000
-      H   10   2.091071   6.162591   1.095350   0.000000
-      H   11   2.090974   6.162981   1.095340   1.793671   0.000000
-      H   12   1.952798   7.103853   1.093770   1.796945   1.796949   0.000000
-      C   13   6.139505   1.414250   7.162950   7.263964   7.264228   8.043417
-      H   14   6.162913   2.090995   7.264196   7.308137   7.525242   8.082318
-      H   15   6.162746   2.090988   7.264012   7.524811   7.308108   8.082220
-      H   16   7.103903   1.952832   8.043429   8.082122   8.082417   8.970961
- 0
-                   C 13       H 14       H 15       H 16
-  ------------------------------------------------------
-      C   13   0.000000
-      H   14   1.095350   0.000000
-      H   15   1.095350   1.793733   0.000000
-      H   16   1.093780   1.796955   1.796925   0.000000
- 
-  -------------------------------------------------------------------------------
-  1SCF  PM3 PRECISE GREENF VECT
-  TEST FOR MOPAC 7.0 FOR J.J.P.STEWART
-   dimethoxy-s-tetrazine method OVGF(PM3)
- 
- 
-      1SCF WAS SPECIFIED, SO BFGS WAS NOT USED                 
-      SCF FIELD WAS ACHIEVED                                   
- 
- 
-                                 PM3    CALCULATION
-                                                        VERSION  7.00
-                                                        Fri Apr  2 08:54:24 1993
- 
- 
- 
- 
-           FINAL HEAT OF FORMATION =         14.44080 KCAL
- 
- 
-           TOTAL ENERGY            =      -1799.83570 EV
-           ELECTRONIC ENERGY       =      -8385.72709 EV
-           CORE-CORE REPULSION     =       6585.89139 EV
- 
-           IONIZATION POTENTIAL    =         10.00519
-           NO. OF FILLED LEVELS    =         27
-           MOLECULAR WEIGHT        =    142.117
- 
- 
-           SCF CALCULATIONS  =                1
-           COMPUTATION TIME =   1.830 SECONDS
- 
- 
- 
- 
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      C       
-       2      N         1.37642  *                                  1
-       3      N         1.28602  *     118.36407  *                 2    1
-       4      C         1.37955  *     118.51027  *    0.00317  *   3    2    1
-       5      N         1.37625  *     123.12897  *   -0.00211  *   4    3    2
-       6      N         1.28617  *     118.35611  *   -0.00012  *   5    4    3
-       7      O         1.35392  *     112.34420  *  179.99563  *   1    2    3
-       8      O         1.35390  *     124.53025  * -179.99976  *   4    3    2
-       9      C         1.41426  *     117.59432  *  179.99799  *   7    1    2
-      10      H         1.09535  *     112.24034  *   62.17779  *   9    7    1
-      11      H         1.09534  *     112.23293  *  -62.21587  *   9    7    1
-      12      H         1.09377  *     101.50305  *  179.98192  *   9    7    1
-      13      C         1.41425  *     117.59651  *   -0.00905  *   8    4    3
-      14      H         1.09535  *     112.23477  *   62.20685  *  13    8    4
-      15      H         1.09535  *     112.23416  *  -62.19005  *  13    8    4
-      16      H         1.09378  *     101.50562  * -179.98986  *  13    8    4
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   C  1       N  2       N  3       C  4       N  5       N  6
-  ------------------------------------------------------------------------------
-      C    1   0.000000
-      N    2   1.376420   0.000000
-      N    3   2.286971   1.286020   0.000000
-      C    4   2.598401   2.291429   1.379550   0.000000
-      N    5   2.291498   2.745636   2.423323   1.376250   0.000000
-      N    6   1.379360   2.423218   2.741176   2.286855   1.286170   0.000000
-      O    7   1.353920   2.268165   3.455924   3.947448   3.558800   2.419331
-      O    8   3.947428   3.558684   2.419435   1.353900   2.267961   3.455837
-      C    9   2.367938   3.577080   4.648448   4.839688   4.077853   2.793434
-      H   10   2.713667   3.975943   4.919074   4.931811   4.034034   2.805587
-      H   11   2.713816   3.975960   4.919223   4.932142   4.034511   2.806064
-      H   12   3.204081   4.216925   5.403827   5.774820   5.121241   3.846399
-      C   13   4.839700   4.077731   2.793471   2.367939   3.576884   4.648342
-      H   14   4.932082   4.034233   2.805887   2.713798   3.975828   4.919102
-      H   15   4.931906   4.034071   2.805767   2.713673   3.975677   4.918931
-      H   16   5.774848   5.121142   3.846470   3.204105   4.216753   5.403770
- 0
-                   O  7       O  8       C  9       H 10       H 11       H 12
-  ------------------------------------------------------------------------------
-      O    7   0.000000
-      O    8   5.298962   0.000000
-      C    9   1.414260   6.139470   0.000000
-      H   10   2.091071   6.162591   1.095350   0.000000
-      H   11   2.090974   6.162981   1.095340   1.793671   0.000000
-      H   12   1.952798   7.103853   1.093770   1.796945   1.796949   0.000000
-      C   13   6.139505   1.414250   7.162950   7.263964   7.264228   8.043417
-      H   14   6.162913   2.090995   7.264196   7.308137   7.525242   8.082318
-      H   15   6.162746   2.090988   7.264012   7.524811   7.308108   8.082220
-      H   16   7.103903   1.952832   8.043429   8.082122   8.082417   8.970961
- 0
-                   C 13       H 14       H 15       H 16
-  ------------------------------------------------------
-      C   13   0.000000
-      H   14   1.095350   0.000000
-      H   15   1.095350   1.793733   0.000000
-      H   16   1.093780   1.796955   1.796925   0.000000
- 
- 
-       MOLECULAR POINT GROUP   :   C2H 
- 
- 
-                 EIGENVECTORS  
- 
- 
-    Root No.   19      20      21      22      23      24      25      26
- 
-               8 BU    2 BG    9 BU    9 AG    3 BG    3 AU   10 BU   10 AG  
- 
-            -13.643 -13.254 -13.020 -12.976 -12.908 -12.273 -11.957 -10.141
-   
-   S   C  1  0.0991  0.0000  0.0133  0.0647  0.0000  0.0000 -0.2017 -0.0013
-   Px  C  1 -0.0859  0.0000  0.0065 -0.0760  0.0000  0.0000 -0.0787 -0.2333
-   Py  C  1 -0.1249  0.0000 -0.0682 -0.0830  0.0000  0.0000 -0.1491  0.1330
-   Pz  C  1  0.0000 -0.3171  0.0000  0.0001 -0.0841 -0.0594  0.0000  0.0000
-   S   N  2 -0.0007  0.0000 -0.1679 -0.1634  0.0000  0.0000  0.3503  0.2670
-   Px  N  2  0.0583  0.0000 -0.2010 -0.0141  0.0000  0.0000  0.2043  0.2938
-   Py  N  2 -0.1155  0.0000  0.3725  0.3185  0.0000  0.0000 -0.2857 -0.2536
-   Pz  N  2  0.0000 -0.2387 -0.0001  0.0000  0.4448  0.1670  0.0000  0.0000
-   S   N  3  0.1203  0.0000 -0.1829 -0.2022  0.0000  0.0000 -0.3201 -0.2509
-   Px  N  3  0.1376  0.0000 -0.4702 -0.3226 -0.0001  0.0000 -0.2826 -0.3458
-   Py  N  3  0.0403  0.0000 -0.0275 -0.1546  0.0000  0.0000  0.0195  0.1151
-   Pz  N  3  0.0000 -0.0058  0.0000  0.0000  0.5245  0.1829  0.0000  0.0000
-   S   C  4 -0.0992  0.0000 -0.0112  0.0651  0.0000  0.0000  0.2017 -0.0013
-   Px  C  4 -0.0861  0.0000  0.0089  0.0757  0.0000  0.0000 -0.0786  0.2333
-   Py  C  4 -0.1251  0.0000 -0.0655  0.0849  0.0000  0.0000 -0.1492 -0.1330
-   Pz  C  4  0.0000  0.3172  0.0000 -0.0001  0.0836 -0.0594  0.0000  0.0000
-   S   N  5  0.0006  0.0000  0.1629 -0.1686  0.0000  0.0001 -0.3502  0.2670
-   Px  N  5  0.0584  0.0000 -0.2005  0.0204  0.0000  0.0000  0.2043 -0.2938
-   Py  N  5 -0.1157 -0.0001  0.3627 -0.3300  0.0000  0.0001 -0.2856  0.2536
-   Pz  N  5  0.0000  0.2387  0.0001  0.0000 -0.4445  0.1678  0.0000  0.0000
-   S   N  6 -0.1203  0.0000  0.1766 -0.2077  0.0000  0.0000  0.3201 -0.2509
-   Px  N  6  0.1376  0.0001 -0.4601  0.3370  0.0000  0.0000 -0.2826  0.3459
-   Py  N  6  0.0403  0.0000 -0.0228  0.1554  0.0000  0.0000  0.0195 -0.1151
-   Pz  N  6  0.0000  0.0057  0.0000  0.0001 -0.5243  0.1837  0.0000  0.0000
-   S   O  7 -0.1218  0.0000 -0.0301 -0.0588  0.0000  0.0000 -0.0096  0.0290
-   Px  O  7 -0.1142  0.0000 -0.0167 -0.0299  0.0000  0.0000 -0.0131  0.0451
-   Py  O  7  0.2180  0.0001  0.0570  0.2596  0.0000  0.0000 -0.0002 -0.0440
-   Pz  O  7  0.0000 -0.2810  0.0000  0.0000 -0.0531 -0.4921  0.0000  0.0000
-   S   O  8  0.1219  0.0000  0.0282 -0.0597  0.0000  0.0000  0.0096  0.0290
-   Px  O  8 -0.1144  0.0000 -0.0157  0.0304  0.0000  0.0000 -0.0132 -0.0452
-   Py  O  8  0.2182  0.0000  0.0490 -0.2612  0.0000  0.0000 -0.0001  0.0441
-   Pz  O  8  0.0000  0.2812  0.0000 -0.0001  0.0525 -0.4920  0.0000  0.0000
-   S   C  9  0.0150  0.0000 -0.0116  0.0189  0.0000  0.0000 -0.0053 -0.0124
-   Px  C  9  0.1395  0.0000  0.0408  0.0262  0.0000  0.0000  0.0232 -0.0667
-   Py  C  9 -0.3804 -0.0001 -0.1370 -0.2096 -0.0001  0.0000 -0.0251  0.0066
-   Pz  C  9  0.0000  0.3491  0.0000 -0.0001  0.0944  0.2778  0.0000  0.0000
-   S   H 10 -0.1841 -0.2659 -0.0618 -0.0925 -0.0658 -0.2403 -0.0135  0.0170
-   S   H 11 -0.1839  0.2660 -0.0617 -0.0924  0.0658  0.2404 -0.0135  0.0169
-   S   H 12  0.3274 -0.0001  0.1141  0.1975  0.0000 -0.0001  0.0188 -0.0067
-   S   C 13 -0.0150  0.0000  0.0122  0.0186  0.0000  0.0000  0.0053 -0.0124
-   Px  C 13  0.1397  0.0000  0.0399 -0.0274  0.0000  0.0000  0.0233  0.0667
-   Py  C 13 -0.3810  0.0001 -0.1302  0.2134  0.0000  0.0000 -0.0251 -0.0067
-   Pz  C 13  0.0000 -0.3492  0.0000  0.0001 -0.0938  0.2778  0.0000  0.0000
-   S   H 14  0.1843  0.2660  0.0588 -0.0943  0.0653 -0.2404  0.0135  0.0169
-   S   H 15  0.1844 -0.2660  0.0588 -0.0942 -0.0653  0.2404  0.0135  0.0169
-   S   H 16 -0.3279  0.0000 -0.1077  0.2007  0.0000  0.0000 -0.0188 -0.0067
- 
- 
-    Root No.   27      28      29      30      31      32      33      34
- 
-               4 BG    4 AU    5 AU   11 AG   11 BU    5 BG   12 AG   12 BU  
- 
-            -10.005  -1.449  -1.044   0.926   1.121   1.395   2.052   2.572
-   
-   S   C  1  0.0000  0.0000  0.0000  0.4294  0.3382  0.0000  0.0506 -0.1379
-   Px  C  1  0.0000  0.0000  0.0000  0.0330 -0.0333  0.0000 -0.1730  0.1470
-   Py  C  1  0.0000  0.0000  0.0000  0.0580 -0.1067  0.0000  0.2475 -0.2141
-   Pz  C  1  0.3882 -0.0673 -0.5788  0.0000  0.0000 -0.4270  0.0000  0.0000
-   S   N  2  0.0000  0.0000  0.0000 -0.1749 -0.1776  0.0000  0.1578 -0.0085
-   Px  N  2  0.0000  0.0000  0.0000  0.2937  0.1667  0.0000 -0.0416  0.0120
-   Py  N  2  0.0000  0.0000  0.0000  0.0004 -0.1995  0.0000  0.2276  0.1333
-   Pz  N  2  0.2974 -0.4745  0.2939  0.0000  0.0000  0.3915  0.0000  0.0000
-   S   N  3  0.0000  0.0000  0.0000 -0.1646  0.1584  0.0000 -0.2216 -0.1541
-   Px  N  3  0.0000  0.0000  0.0000  0.1541 -0.2453  0.0000  0.3273  0.2021
-   Py  N  3  0.0000  0.0000  0.0000 -0.2454  0.0011  0.0000  0.0008 -0.1632
-   Pz  N  3 -0.2691  0.5192  0.1814  0.0000  0.0001 -0.3836  0.0000  0.0000
-   S   C  4  0.0000  0.0000  0.0000  0.4288 -0.3390  0.0000  0.0507  0.1376
-   Px  C  4  0.0000  0.0000  0.0000 -0.0326 -0.0334  0.0000  0.1730  0.1465
-   Py  C  4  0.0000  0.0000  0.0000 -0.0584 -0.1065  0.0000 -0.2478 -0.2142
-   Pz  C  4 -0.3882 -0.0671 -0.5788  0.0000 -0.0001  0.4270  0.0000  0.0000
-   S   N  5  0.0000  0.0000  0.0000 -0.1744  0.1779  0.0000  0.1578  0.0082
-   Px  N  5  0.0000  0.0000  0.0000 -0.2932  0.1672  0.0000  0.0414  0.0119
-   Py  N  5  0.0000  0.0000  0.0000 -0.0007 -0.1995  0.0000 -0.2276  0.1338
-   Pz  N  5 -0.2977 -0.4742  0.2941  0.0000  0.0000 -0.3915  0.0000  0.0000
-   S   N  6  0.0000  0.0000  0.0000 -0.1648 -0.1581  0.0000 -0.2216  0.1545
-   Px  N  6  0.0000  0.0000  0.0000 -0.1544 -0.2449  0.0000 -0.3271  0.2025
-   Py  N  6  0.0000  0.0000  0.0000  0.2451  0.0006  0.0000 -0.0011 -0.1631
-   Pz  N  6  0.2694  0.5190  0.1816  0.0000  0.0000  0.3837  0.0000  0.0000
-   S   O  7  0.0000  0.0000  0.0000 -0.1002 -0.1503  0.0000  0.1041 -0.0922
-   Px  O  7  0.0000  0.0000  0.0000  0.0524  0.0981  0.0000 -0.1792  0.2570
-   Py  O  7  0.0000  0.0000  0.0000 -0.2236 -0.3123  0.0000  0.0621 -0.0019
-   Pz  O  7 -0.4033  0.0297  0.2055  0.0000  0.0000  0.1219  0.0000  0.0000
-   S   O  8  0.0000  0.0000  0.0000 -0.0999  0.1505  0.0000  0.1043  0.0924
-   Px  O  8  0.0000  0.0000  0.0000 -0.0522  0.0982  0.0000  0.1793  0.2571
-   Py  O  8  0.0000  0.0000  0.0000  0.2230 -0.3127  0.0000 -0.0622 -0.0022
-   Pz  O  8  0.4033  0.0296  0.2055  0.0000  0.0000 -0.1219  0.0000  0.0000
-   S   C  9  0.0000  0.0000  0.0000  0.0505  0.0882  0.0000 -0.2182  0.3217
-   Px  C  9  0.0000  0.0000  0.0000  0.1201  0.2053  0.0000 -0.2279  0.2292
-   Py  C  9  0.0000  0.0000  0.0000  0.0121  0.0191  0.0000 -0.0575  0.0927
-   Pz  C  9  0.0742 -0.0106  0.0124  0.0000  0.0000  0.0198  0.0000  0.0000
-   S   H 10 -0.1002  0.0046  0.0399  0.0034  0.0001  0.0316  0.0847 -0.1660
-   S   H 11  0.1002 -0.0047 -0.0399  0.0033  0.0001 -0.0316  0.0846 -0.1660
-   S   H 12  0.0000  0.0000  0.0000 -0.0637 -0.0905  0.0000  0.0860 -0.0995
-   S   C 13  0.0000  0.0000  0.0000  0.0502 -0.0883  0.0000 -0.2184 -0.3217
-   Px  C 13  0.0000  0.0000  0.0000 -0.1196  0.2055  0.0000  0.2281  0.2294
-   Py  C 13  0.0000  0.0000  0.0000 -0.0120  0.0191  0.0000  0.0576  0.0926
-   Pz  C 13 -0.0742 -0.0106  0.0124  0.0000  0.0000 -0.0198  0.0000  0.0000
-   S   H 14  0.1002  0.0046  0.0399  0.0034 -0.0001 -0.0316  0.0847  0.1660
-   S   H 15 -0.1002 -0.0046 -0.0399  0.0034 -0.0001  0.0316  0.0847  0.1660
-   S   H 16  0.0000  0.0000  0.0000 -0.0635  0.0906  0.0000  0.0861  0.0996
- 
- 
-               NET ATOMIC CHARGES AND DIPOLE CONTRIBUTIONS
- 
-          ATOM NO.   TYPE          CHARGE        ATOM  ELECTRON DENSITY
-            1          C          -0.0158          4.0158
-            2          N           0.0003          4.9997
-            3          N          -0.0481          5.0481
-            4          C          -0.0159          4.0159
-            5          N           0.0002          4.9998
-            6          N          -0.0483          5.0483
-            7          O          -0.1350          6.1350
-            8          O          -0.1350          6.1350
-            9          C           0.0562          3.9438
-           10          H           0.0434          0.9566
-           11          H           0.0434          0.9566
-           12          H           0.0559          0.9441
-           13          C           0.0562          3.9438
-           14          H           0.0434          0.9566
-           15          H           0.0434          0.9566
-           16          H           0.0559          0.9441
-  DIPOLE           X         Y         Z       TOTAL
-  POINT-CHG.     0.001    -0.001     0.000     0.001
-  HYBRID         0.000     0.000     0.000     0.000
-  SUM            0.001    -0.001     0.000     0.001
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM               X         Y         Z
- 
-      1         C                  0.0000    0.0000    0.0000
-      2         N                  1.3764    0.0000    0.0000
-      3         N                  1.9874    1.1316    0.0000
-      4         C                  1.2335    2.2870    0.0001
-      5         N                 -0.1428    2.2870    0.0001
-      6         N                 -0.7537    1.1552    0.0000
-      7         O                 -0.5147   -1.2523   -0.0001
-      8         O                  1.7482    3.5392    0.0001
-      9         C                 -1.9230   -1.3817   -0.0001
-     10         H                 -2.3792   -0.9483   -0.8967
-     11         H                 -2.3790   -0.9490    0.8970
-     12         H                 -2.0422   -2.4689   -0.0005
-     13         C                  3.1565    3.6687    0.0002
-     14         H                  3.6126    3.2358   -0.8967
-     15         H                  3.6125    3.2356    0.8971
-     16         H                  3.2756    4.7560    0.0004
- 
- 
-           ATOMIC ORBITAL ELECTRON POPULATIONS
- 
-    1.24619   0.92106   0.89624   0.95234   1.63544   1.04578   1.24869   1.06981
-    1.64293   1.36929   0.93531   1.10060   1.24621   0.92111   0.89623   0.95233
-    1.63548   1.04576   1.24858   1.07001   1.64288   1.36937   0.93530   1.10071
-    1.82991   1.23304   1.20677   1.86532   1.82990   1.23304   1.20680   1.86530
-    1.13568   0.80064   1.00161   1.00590   0.95659   0.95661   0.94411   1.13568
-    0.80066   1.00162   1.00589   0.95660   0.95660   0.94411
- 
- 
- 
- 
-           ************************************************
-           *                                              *
-           *   SEMIEMPIRICAL GREEN FUNCTION CALCULATION   *
-           *                                              *
-           *  This package was written by Dr. D.Danovich  *
-           *            Chemistry Department              *
-           *    TECHNION-Israel Institute of Technology   *
-           *      Technion City, Haifa  32000, ISRAEL     *
-           *                                              *
-           ************************************************
- 
- 
- 
-  NUMBER OF OCCUPIED MOS      20
-  NUMBER OF UNOCCUPIED MOS    19
-  PRINTING FLAG                0
- 
- 
- 
-  THERE ARE      304590 NONZERO INTEGRALS.
- 
- 
- 
-      number of nonzero integrals =    304590     Total number of MO  =  46
- 
- 
-                                      Orbital energy 
- 
-            1      2      3      4      5      6      7      8      9     10
- 
-           11     12     13     14     15     16     17     18     19     20
- 
-           21     22     23     24     25     26     27     28     29     30
- 
-           31     32     33     34     35     36     37     38     39     40
- 
-           41     42     43     44     45     46
- 
- 
-      -39.868-39.206-35.705-29.957-28.757-28.219-26.595-23.259-22.607-20.684
- 
- 
-      -19.197-19.183-17.470-16.910-16.112-15.897-15.109-13.924-13.643-13.254
- 
- 
-      -13.020-12.976-12.908-12.273-11.957-10.141-10.005 -1.449 -1.044  0.926
- 
- 
-        1.121  1.395  2.052  2.572  2.821  3.414  3.501  3.615  3.645  3.786
- 
- 
-        3.786  3.866  5.007  5.071  5.570  6.881
- 
- 
-       Higher occupied MO  is    27  MO 
- 
- 
- 
-      TOTAL NUMBER OF OCCUPIED ORBITALS INVOLVED IN THE
-       OVGF CALCULATION = 20
-      TOTAL NUMBER OF UNOCCUPIED ORBITALS INVOLVED IN THE
-       OVGF CALCULATION = 19
-      THE NUMBER OF FIRST OCCUPIED MO FOR WHICH OVGF CORRECTION 
-      MUST BE STARTED = 20
-      THE NUMBER OF LAST OCCUPIED MO FOR WHICH OVGF CORRECTION 
-      MUST BE  FINISHED = 27
-      TOLERANCE FACTOR =   1.00000000
-      SECOND-ORDER CONTRIBUTION =   0
-      THIRD-ORDER CONTRIBUTION =   0
-      FULL EXPRESSION =   0
-      PRINT FACTOR =   0
-      ONLY SECOND-ORDER CONTRIBUTION =   1
- 
- 
- 
-       RESULTS OF CALCULATION PES  
- 
-  LEVEL     2      IR     3      IR     FINAL    IR     SCF
- 
-  20     -12.697    1    0.000    0    0.000     0    -13.254
- 
-  21     -12.174    1    0.000    0    0.000     0    -13.020
- 
-  22     -12.233    1    0.000    0    0.000     0    -12.976
- 
-  23     -12.427    1    0.000    0    0.000     0    -12.908
- 
-  24     -11.459    1    0.000    0    0.000     0    -12.273
- 
-  25     -11.211    1    0.000    0    0.000     0    -11.957
- 
-  26      -9.529    1    0.000    0    0.000     0    -10.141
- 
-  27      -9.670    1    0.000    0    0.000     0    -10.005
- 
- 
-       IN CALCULATED USED    20 HOMO  and    19 LUMO 
-       ACCURACY SELFCONSISTENT  =   1.00000000
-       FINAL RESULT CALCULATED BY   0  METHOD 
- 
- 
-       FINAL=0, CALCULATED BY  FORMULA W=EP+SUM2+(1+A)**(-1)*SU3R
-       FINAL=1, CALCULATED BY FORMULA W=EP+SUM2+(1+G1)**-1)
-    *(CS4+CS5+CS6+DS4+DS5+DS6)+(1+G2)**(-1)*(CS1+CS2+CS3+DS1
-    +DS2+DS3)+AA
-       FINAL= -1, CALCULATED BY FORMULA W=EP+SUM2+(1+A)**(-1)*SUM3
- 
- 
-       CALCULATION RELAXATION EFFECTS ONLY  
- 
-    LEVEL  R.effect   ENERGY SCF     ENERGY
- 
-     20    0.038440   -13.2538         13.2154
- 
-     21    0.159918   -13.0202         12.8603
- 
-     22    0.066830   -12.9759         12.9091
- 
-     23    0.217969   -12.9082         12.6903
- 
-     24    0.097383   -12.2734         12.1760
- 
-     25    0.165876   -11.9573         11.7915
- 
-     26    0.180178   -10.1406          9.9605
- 
-     27    0.156901   -10.0052          9.8483
- 
- 
- 
-  TOTAL CPU TIME:            50.69 SECONDS
- 
-  == MOPAC DONE ==
--- 0 ----
diff -cdN ../src.old//test_pol.out ./test_pol.out
*** ../src.old//test_pol.out	Fri Apr  2 01:53:46 1993
--- ./test_pol.out
***************
*** 1,619 ****
-  *******************************************************************************
-  ** MOPAC (PUBLIC DOMAIN) FOR DEVELOPMENT USE ONLY.  NOT FOR PRODUCTION WORK  **
-  *******************************************************************************
- 
-                                 MNDO CALCULATION RESULTS
- 
- 
-  *******************************************************************************
-  *          MOPAC:  VERSION  7.00               CALC'D. Fri Apr  2 08:53:24 1993
-  *  POLAR    - CALCULATE FIRST, SECOND AND THIRD-ORDER POLARIZABILITIES
-  *  SYMMETRY - SYMMETRY CONDITIONS TO BE IMPOSED
-  *   T=      - A TIME OF  3600.0 SECONDS REQUESTED
-  *  DUMP=N   - RESTART FILE WRITTEN EVERY  3600.0 SECONDS
-  ***********************************************************************030BY030
- 
- 
- 
-      PARAMETER DEPENDENCE DATA
- 
-         REFERENCE ATOM      FUNCTION NO.    DEPENDENT ATOM(S)
-             3                  1             4
-             3                  2             4
- 
-              DESCRIPTIONS OF THE FUNCTIONS USED
- 
-    1      BOND LENGTH    IS SET EQUAL TO THE REFERENCE BOND LENGTH   
-    2      BOND ANGLE     IS SET EQUAL TO THE REFERENCE BOND ANGLE    
-     POLAR  SYMMETRY
-  Formaldehyde, for Demonstration Purposes
-  
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      O       
-       2      C         1.20000  *                                  1
-       3      H         1.10000  *     120.00000  *                 2    1
-       4      H         1.10000        120.00000     180.00000      2    1    3
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM         X         Y         Z
- 
-      1         O        0.0000    0.0000    0.0000
-      2         C        1.2000    0.0000    0.0000
-      3         H        1.7500    0.9526    0.0000
-      4         H        1.7500   -0.9526    0.0000
- 
- 
-      MOLECULAR POINT GROUP   :   C2V 
-   H: (MNDO):  M.J.S. DEWAR, W. THIEL, J. AM. CHEM. SOC., 99, 4899, (1977)       
-   C: (MNDO):  M.J.S. DEWAR, W. THIEL, J. AM. CHEM. SOC., 99, 4899, (1977)       
-   O: (MNDO):  M.J.S. DEWAR, W. THIEL, J. AM. CHEM. SOC., 99, 4899, (1977)       
- 
- 
-           RHF CALCULATION, NO. OF DOUBLY OCCUPIED LEVELS =  6
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   O  1       C  2       H  3       H  4
-  ------------------------------------------------------
-      O    1   0.000000
-      C    2   1.200000   0.000000
-      H    3   1.992486   1.100000   0.000000
-      H    4   1.992486   1.100000   1.905256   0.000000
-  CYCLE:   1 TIME:   0.11 TIME LEFT:   3599.7 GRAD.:     6.340 HEAT:-32.84026    
-  CYCLE:   2 TIME:   0.05 TIME LEFT:   3599.7 GRAD.:     2.535 HEAT:-32.88011    
-  HEAT OF FORMATION TEST SATISFIED
-  PETERS TEST SATISFIED 
- 
-  -------------------------------------------------------------------------------
-     POLAR  SYMMETRY
-  Formaldehyde, for Demonstration Purposes
-  
- 
- 
-      PETERS TEST WAS SATISFIED IN BFGS OPTIMIZATION           
-      SCF FIELD WAS ACHIEVED                                   
- 
- 
-                                MNDO    CALCULATION
-                                                        VERSION  7.00
-                                                        Fri Apr  2 08:53:25 1993
- 
- 
- 
- 
-           FINAL HEAT OF FORMATION =        -32.88176 KCAL
- 
- 
-           TOTAL ENERGY            =       -478.11917 EV
-           ELECTRONIC ENERGY       =       -870.69628 EV
-           CORE-CORE REPULSION     =        392.57711 EV
- 
-           IONIZATION POTENTIAL    =         11.04197
-           NO. OF FILLED LEVELS    =          6
-           MOLECULAR WEIGHT        =     30.026
- 
- 
-           SCF CALCULATIONS  =                6
-           COMPUTATION TIME =   0.410 SECONDS
- 
- 
- 
- 
- 
-     ATOM   CHEMICAL  BOND LENGTH    BOND ANGLE     TWIST ANGLE
-    NUMBER  SYMBOL    (ANGSTROMS)     (DEGREES)      (DEGREES)
-     (I)                  NA:I          NB:NA:I      NC:NB:NA:I     NA   NB   NC
- 
-       1      O       
-       2      C         1.21678  *                                  1
-       3      H         1.10590  *     123.50231  *                 2    1
-       4      H         1.10590        123.50231     180.00000      2    1    3
- 
- 
-             INTERATOMIC DISTANCES
- 0
-                   O  1       C  2       H  3       H  4
-  ------------------------------------------------------
-      O    1   0.000000
-      C    2   1.216776   0.000000
-      H    3   2.046723   1.105904   0.000000
-      H    4   2.046723   1.105904   1.844347   0.000000
- 
- 
-       MOLECULAR POINT GROUP   :   C2V 
- 
- 
-                   EIGENVALUES
- 
-  -42.98353 -25.12195 -16.95327 -16.29818 -14.17550 -11.04197   0.85804   3.67676
-    3.84989   7.12409
- 
- 
-               NET ATOMIC CHARGES AND DIPOLE CONTRIBUTIONS
- 
-          ATOM NO.   TYPE          CHARGE        ATOM  ELECTRON DENSITY
-            1          O          -0.2903          6.2903
-            2          C           0.2921          3.7079
-            3          H          -0.0009          1.0009
-            4          H          -0.0009          1.0009
-  DIPOLE           X         Y         Z       TOTAL
-  POINT-CHG.     1.692     0.000     0.000     1.692
-  HYBRID         0.475     0.000     0.000     0.475
-  SUM            2.166     0.000     0.000     2.166
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM               X         Y         Z
- 
-      1         O                  0.0000    0.0000    0.0000
-      2         C                  1.2168    0.0000    0.0000
-      3         H                  1.8272    0.9222    0.0000
-      4         H                  1.8272   -0.9222    0.0000
- 
- 
-           ATOMIC ORBITAL ELECTRON POPULATIONS
- 
-    1.88270   1.21586   1.89126   1.30050   1.25532   0.86217   0.89095   0.69950
-    1.00087   1.00087
- 1******************** TDHF POLARIZABILITIES ********************
- 
- 
- 
-           MOLECULAR WEIGHT =   30.03
- 
- 
- 
-            PRINCIPAL MOMENTS OF INERTIA IN CM(-1)
- 
-           A =    9.833870   B =    1.261600   C =    1.118151
- 
- 
- 
-            PRINCIPAL MOMENTS OF INERTIA IN UNITS OF 10**(-40)*GRAM-CM**2
- 
-           A =    2.846554   B =   22.188196   C =   25.034750
- 
- 
-  ROTATION MATRIX FOR ORIENTATION OF MOLECULE:
- 
-         -1.000000    0.000000    0.000000
-          0.000000   -1.000000    0.000000
-          0.000000    0.000000    1.000000
- 
- 
-           CARTESIAN COORDINATES 
- 
-     NO.       ATOM         X         Y         Z
- 
-      1         O        0.6094    0.0000    0.0000
-      2         C       -0.6074    0.0000    0.0000
-      3         H       -1.2178   -0.9222    0.0000
-      4         H       -1.2178    0.9222    0.0000
- 
- 
-  ENERGY OF "REORIENTED" SYSTEM WITHOUT FIELD:      -32.8817631428
- 
- 
-   NFREQ=  3  IWFLB=  0  IBET=  1  IGAM=  1
-   ATOL= 0.10000D-02  BTOL= 0.10000D-02    MAXITU=  500    MAXITA=  150
- 
- 
-  *****************************************************************
-  CALCULATION OF STATIC FIELD QUANTITIES
-  *****************************************************************
- 
-  +++++ ALPHA AT       0.00000 EV.
- 
-  CONVERGED IN  10 ITERATIONS IN      0.12 SECONDS
-            DENSITY CONVERG. TO  9.12302D-04
-              ALPHA CONVERG. TO  9.69679D-04
- 
-       ALPHA(X,X) =  1.8702752D+01
-       ALPHA(Y,X) =  1.9863977D-10
-       ALPHA(Z,X) = -4.8795465D-10
- 
-  CONVERGED IN  11 ITERATIONS IN      0.14 SECONDS
-            DENSITY CONVERG. TO  6.58506D-04
-              ALPHA CONVERG. TO  2.17815D-03
- 
-       ALPHA(Y,Y) =  9.7938523D+00
-       ALPHA(X,Y) =  1.9866331D-10
-       ALPHA(Z,Y) = -1.0767537D-08
- 
-  CONVERGED IN   9 ITERATIONS IN      0.11 SECONDS
-            DENSITY CONVERG. TO  7.03620D-04
-              ALPHA CONVERG. TO  4.88292D-04
- 
-       ALPHA(Z,Z) =  2.3469180D+00
-       ALPHA(X,Z) = -4.8793269D-10
-       ALPHA(Y,Z) = -1.0769376D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.28117 A.U.
- 
-  +++++ BETA (SECOND HARMONIC GENERATION) AT       0.00000 EV.
- 
- 
-  CONVERGED IN  14 ITERATIONS IN      0.68 SECONDS
-  MAXIMUM UAB ELEMENT =        5.41598,  MAXIMUM DIFFERENCE =        0.00081
- 
-       BETA(X,X,X) =        37.11909
-       BETA(Y,X,X) =         0.00000
-       BETA(Z,X,X) =         0.00000
- 
-  CONVERGED IN  13 ITERATIONS IN      0.65 SECONDS
-  MAXIMUM UAB ELEMENT =        9.90247,  MAXIMUM DIFFERENCE =        0.00075
- 
-       BETA(X,X,Y) =         0.00000
-       BETA(Y,X,Y) =        39.65181
-       BETA(Z,X,Y) =         0.00000
- 
-  CONVERGED IN  13 ITERATIONS IN      0.65 SECONDS
-  MAXIMUM UAB ELEMENT =        4.14332,  MAXIMUM DIFFERENCE =        0.00055
- 
-       BETA(X,X,Z) =         0.00000
-       BETA(Y,X,Z) =         0.00000
-       BETA(Z,X,Z) =         5.79988
- 
-  CONVERGED IN  16 ITERATIONS IN      0.76 SECONDS
-  MAXIMUM UAB ELEMENT =       12.92266,  MAXIMUM DIFFERENCE =        0.00075
- 
-       BETA(X,Y,Y) =        39.66643
-       BETA(Y,Y,Y) =         0.00000
-       BETA(Z,Y,Y) =         0.00000
- 
-  CONVERGED IN  27 ITERATIONS IN      1.23 SECONDS
-  MAXIMUM UAB ELEMENT =        9.41027,  MAXIMUM DIFFERENCE =        0.00082
- 
-       BETA(X,Y,Z) =         0.00000
-       BETA(Y,Y,Z) =         0.00000
-       BETA(Z,Y,Z) =         0.00000
- 
-  CONVERGED IN  10 ITERATIONS IN      0.50 SECONDS
-  MAXIMUM UAB ELEMENT =        0.77301,  MAXIMUM DIFFERENCE =        0.00082
- 
-       BETA(X,Z,Z) =         5.79454
-       BETA(Y,Z,Z) =         0.00000
-       BETA(Z,Z,Z) =         0.00000
- 
- 
-  AVERAGE BETAX(SHG) VALUE AT   0.00000 EV =    49.54432
-  AVERAGE BETAY(SHG) VALUE AT   0.00000 EV =     0.00000
-  AVERAGE BETAZ(SHG) VALUE AT   0.00000 EV =     0.00000
- 
- 
-  AVERAGE BETA (SHG) VALUE AT   0.00000 EV =    49.54432
- 
- 
- 
-  +++++ ALPHA AT       0.00000 EV.
- 
-  CONVERGED IN  10 ITERATIONS IN      0.12 SECONDS
-            DENSITY CONVERG. TO  9.12302D-04
-              ALPHA CONVERG. TO  9.69679D-04
- 
-       ALPHA(X,X) =  1.8702752D+01
-       ALPHA(Y,X) =  1.9863977D-10
-       ALPHA(Z,X) = -4.8795465D-10
- 
-  CONVERGED IN  11 ITERATIONS IN      0.16 SECONDS
-            DENSITY CONVERG. TO  6.58506D-04
-              ALPHA CONVERG. TO  2.17815D-03
- 
-       ALPHA(Y,Y) =  9.7938523D+00
-       ALPHA(X,Y) =  1.9866331D-10
-       ALPHA(Z,Y) = -1.0767537D-08
- 
-  CONVERGED IN   9 ITERATIONS IN      0.11 SECONDS
-            DENSITY CONVERG. TO  7.03620D-04
-              ALPHA CONVERG. TO  4.88292D-04
- 
-       ALPHA(Z,Z) =  2.3469180D+00
-       ALPHA(X,Z) = -4.8793269D-10
-       ALPHA(Y,Z) = -1.0769376D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.28117 A.U.
- 
- 
-  GAMMA (THIRD HARMONIC GENERATION) AT    0.00000 EV.
- 
- 
-  GAMMA(X,X,X,X) =    -266.37470
-  GAMMA(Y,Y,Y,Y) =     250.55880
-  GAMMA(Z,Z,Z,Z) =      -5.58304
-  GAMMA(X,X,Y,Y) =     168.28002
-  GAMMA(X,X,Z,Z) =      78.85592
-  GAMMA(Y,Y,X,X) =     168.26779
-  GAMMA(Y,Y,Z,Z) =      92.16561
-  GAMMA(Z,Z,X,X) =      78.84936
-  GAMMA(Z,Z,Y,Y) =      92.14769
- 
- 
-  AVERAGE GAMMA VALUE AT    0.00000 =     131.43349
- 
- 
- 
- 
-  **********************************************************************
-  CALCULATION FOR A FREQUENCY OF    0.25000 EV  =       0.00919 A.U. 
-                   WAVELENGTH OF    4959.37 NM  =    2016.38525 CM(-1)
-  **********************************************************************
- 
-  +++++ ALPHA AT       0.25000 EV.
- 
-  CONVERGED IN  11 ITERATIONS IN      0.14 SECONDS
-            DENSITY CONVERG. TO  6.72239D-04
-              ALPHA CONVERG. TO  4.99296D-04
- 
-       ALPHA(X,X) =  1.8715372D+01
-       ALPHA(Y,X) =  1.9881075D-10
-       ALPHA(Z,X) = -4.8830949D-10
- 
-  CONVERGED IN  11 ITERATIONS IN      0.14 SECONDS
-            DENSITY CONVERG. TO  9.45855D-04
-              ALPHA CONVERG. TO  2.24448D-03
- 
-       ALPHA(Y,Y) =  9.8027243D+00
-       ALPHA(X,Y) =  1.9881075D-10
-       ALPHA(Z,Y) = -1.0775299D-08
- 
-  CONVERGED IN   9 ITERATIONS IN      0.12 SECONDS
-            DENSITY CONVERG. TO  7.79359D-04
-              ALPHA CONVERG. TO  4.92324D-04
- 
-       ALPHA(Z,Z) =  2.3475754D+00
-       ALPHA(X,Z) = -4.8827469D-10
-       ALPHA(Y,Z) = -1.0776999D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.28856 A.U.
- 
-  +++++ BETA (SECOND HARMONIC GENERATION) AT       0.25000 EV.
- 
- 
-  CONVERGED IN  15 ITERATIONS IN      0.72 SECONDS
-  MAXIMUM UAB ELEMENT =        6.10703,  MAXIMUM DIFFERENCE =        0.00071
- 
-       BETA(X,X,X) =        37.23892
-       BETA(Y,X,X) =         0.00000
-       BETA(Z,X,X) =         0.00000
- 
-  CONVERGED IN  14 ITERATIONS IN      0.66 SECONDS
-  MAXIMUM UAB ELEMENT =       11.12295,  MAXIMUM DIFFERENCE =        0.00080
- 
-       BETA(X,X,Y) =         0.00000
-       BETA(Y,X,Y) =        39.87349
-       BETA(Z,X,Y) =         0.00000
- 
-  CONVERGED IN  13 ITERATIONS IN      0.62 SECONDS
-  MAXIMUM UAB ELEMENT =        4.18466,  MAXIMUM DIFFERENCE =        0.00073
- 
-       BETA(X,X,Z) =         0.00000
-       BETA(Y,X,Z) =         0.00000
-       BETA(Z,X,Z) =         5.82077
- 
-  CONVERGED IN  17 ITERATIONS IN      0.80 SECONDS
-  MAXIMUM UAB ELEMENT =       14.46534,  MAXIMUM DIFFERENCE =        0.00070
- 
-       BETA(X,Y,Y) =        39.84208
-       BETA(Y,Y,Y) =         0.00000
-       BETA(Z,Y,Y) =         0.00000
- 
-  CONVERGED IN  31 ITERATIONS IN      1.46 SECONDS
-  MAXIMUM UAB ELEMENT =        7.99153,  MAXIMUM DIFFERENCE =        0.00088
- 
-       BETA(X,Y,Z) =         0.00000
-       BETA(Y,Y,Z) =         0.00000
-       BETA(Z,Y,Z) =         0.00000
- 
-  CONVERGED IN  11 ITERATIONS IN      0.56 SECONDS
-  MAXIMUM UAB ELEMENT =        0.72359,  MAXIMUM DIFFERENCE =        0.00062
- 
-       BETA(X,Z,Z) =         5.80957
-       BETA(Y,Z,Z) =         0.00000
-       BETA(Z,Z,Z) =         0.00000
- 
- 
-  AVERAGE BETAX(SHG) VALUE AT   0.25000 EV =    49.75139
-  AVERAGE BETAY(SHG) VALUE AT   0.25000 EV =     0.00000
-  AVERAGE BETAZ(SHG) VALUE AT   0.25000 EV =     0.00000
- 
- 
-  AVERAGE BETA (SHG) VALUE AT   0.25000 EV =    49.75139
- 
- 
- 
-  +++++ ALPHA AT       0.75000 EV.
- 
-  CONVERGED IN  12 ITERATIONS IN      0.18 SECONDS
-            DENSITY CONVERG. TO  6.32423D-04
-              ALPHA CONVERG. TO  3.90550D-04
- 
-       ALPHA(X,X) =  1.8813606D+01
-       ALPHA(Y,X) =  2.0000668D-10
-       ALPHA(Z,X) = -4.9109244D-10
- 
-  CONVERGED IN  12 ITERATIONS IN      0.16 SECONDS
-            DENSITY CONVERG. TO  9.16083D-04
-              ALPHA CONVERG. TO  1.39529D-03
- 
-       ALPHA(Y,Y) =  9.8757114D+00
-       ALPHA(X,Y) =  2.0000890D-10
-       ALPHA(Z,Y) = -1.0837074D-08
- 
-  CONVERGED IN   9 ITERATIONS IN      0.11 SECONDS
-            DENSITY CONVERG. TO  9.70704D-04
-              ALPHA CONVERG. TO  5.25219D-04
- 
-       ALPHA(Z,Z) =  2.3528539D+00
-       ALPHA(X,Z) = -4.9102877D-10
-       ALPHA(Y,Z) = -1.0838383D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.34739 A.U.
- 
- 
-  GAMMA (THIRD HARMONIC GENERATION) AT    0.25000 EV.
- 
- 
-  GAMMA(X,X,X,X) =    -267.76847
-  GAMMA(Y,Y,Y,Y) =     257.49135
-  GAMMA(Z,Z,Z,Z) =      -5.56557
-  GAMMA(X,X,Y,Y) =     171.17037
-  GAMMA(X,X,Z,Z) =      79.45773
-  GAMMA(Y,Y,X,X) =     172.28486
-  GAMMA(Y,Y,Z,Z) =      95.81644
-  GAMMA(Z,Z,X,X) =      79.33961
-  GAMMA(Z,Z,Y,Y) =      94.47450
- 
- 
-  AVERAGE GAMMA VALUE AT    0.25000 =     135.34017
- 
- 
- 
- 
-  **********************************************************************
-  CALCULATION FOR A FREQUENCY OF    0.50000 EV  =       0.01837 A.U. 
-                   WAVELENGTH OF    2479.68 NM  =    4032.77050 CM(-1)
-  **********************************************************************
- 
-  +++++ ALPHA AT       0.50000 EV.
- 
-  CONVERGED IN  11 ITERATIONS IN      0.13 SECONDS
-            DENSITY CONVERG. TO  8.73662D-04
-              ALPHA CONVERG. TO  5.89236D-04
- 
-       ALPHA(X,X) =  1.8751929D+01
-       ALPHA(Y,X) =  1.9925084D-10
-       ALPHA(Z,X) = -4.8934555D-10
- 
-  CONVERGED IN  12 ITERATIONS IN      0.15 SECONDS
-            DENSITY CONVERG. TO  6.78563D-04
-              ALPHA CONVERG. TO  1.18625D-03
- 
-       ALPHA(Y,Y) =  9.8306287D+00
-       ALPHA(X,Y) =  1.9926460D-10
-       ALPHA(Z,Y) = -1.0797760D-08
- 
-  CONVERGED IN   9 ITERATIONS IN      0.11 SECONDS
-            DENSITY CONVERG. TO  8.67690D-04
-              ALPHA CONVERG. TO  5.04526D-04
- 
-       ALPHA(Z,Z) =  2.3495508D+00
-       ALPHA(X,Z) = -4.8930370D-10
-       ALPHA(Y,Z) = -1.0799934D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.31070 A.U.
- 
-  +++++ BETA (SECOND HARMONIC GENERATION) AT       0.50000 EV.
- 
- 
-  CONVERGED IN  16 ITERATIONS IN      0.75 SECONDS
-  MAXIMUM UAB ELEMENT =        6.89407,  MAXIMUM DIFFERENCE =        0.00068
- 
-       BETA(X,X,X) =        37.58620
-       BETA(Y,X,X) =         0.00000
-       BETA(Z,X,X) =         0.00000
- 
-  CONVERGED IN  15 ITERATIONS IN      0.71 SECONDS
-  MAXIMUM UAB ELEMENT =       12.53908,  MAXIMUM DIFFERENCE =        0.00090
- 
-       BETA(X,X,Y) =         0.00000
-       BETA(Y,X,Y) =        40.52671
-       BETA(Z,X,Y) =         0.00000
- 
-  CONVERGED IN  14 ITERATIONS IN      0.67 SECONDS
-  MAXIMUM UAB ELEMENT =        4.52869,  MAXIMUM DIFFERENCE =        0.00054
- 
-       BETA(X,X,Z) =         0.00000
-       BETA(Y,X,Z) =         0.00000
-       BETA(Z,X,Z) =         5.88487
- 
-  CONVERGED IN  18 ITERATIONS IN      0.88 SECONDS
-  MAXIMUM UAB ELEMENT =       16.29772,  MAXIMUM DIFFERENCE =        0.00074
- 
-       BETA(X,Y,Y) =        40.38414
-       BETA(Y,Y,Y) =         0.00000
-       BETA(Z,Y,Y) =         0.00000
- 
-  CONVERGED IN  37 ITERATIONS IN      1.71 SECONDS
-  MAXIMUM UAB ELEMENT =        6.91763,  MAXIMUM DIFFERENCE =        0.00091
- 
-       BETA(X,Y,Z) =         0.00000
-       BETA(Y,Y,Z) =         0.00000
-       BETA(Z,Y,Z) =         0.00000
- 
-  CONVERGED IN  11 ITERATIONS IN      0.55 SECONDS
-  MAXIMUM UAB ELEMENT =        0.67840,  MAXIMUM DIFFERENCE =        0.00090
- 
-       BETA(X,Z,Z) =         5.85568
-       BETA(Y,Z,Z) =         0.00000
-       BETA(Z,Z,Z) =         0.00000
- 
- 
-  AVERAGE BETAX(SHG) VALUE AT   0.50000 EV =    50.36431
-  AVERAGE BETAY(SHG) VALUE AT   0.50000 EV =     0.00000
-  AVERAGE BETAZ(SHG) VALUE AT   0.50000 EV =     0.00000
- 
- 
-  AVERAGE BETA (SHG) VALUE AT   0.50000 EV =    50.36431
- 
- 
- 
-  +++++ ALPHA AT       1.50000 EV.
- 
-  CONVERGED IN  13 ITERATIONS IN      0.17 SECONDS
-            DENSITY CONVERG. TO  7.43870D-04
-              ALPHA CONVERG. TO  5.34468D-04
- 
-       ALPHA(X,X) =  1.9153587D+01
-       ALPHA(Y,X) =  2.0416113D-10
-       ALPHA(Z,X) = -5.0073494D-10
- 
-  CONVERGED IN  14 ITERATIONS IN      0.17 SECONDS
-            DENSITY CONVERG. TO  6.73578D-04
-              ALPHA CONVERG. TO  8.39619D-04
- 
-       ALPHA(Y,Y) =  1.0129345D+01
-       ALPHA(X,Y) =  2.0417801D-10
-       ALPHA(Z,Y) = -1.1054686D-08
- 
-  CONVERGED IN  10 ITERATIONS IN      0.14 SECONDS
-            DENSITY CONVERG. TO  7.59157D-04
-              ALPHA CONVERG. TO  3.32814D-04
- 
-       ALPHA(Z,Z) =  2.3712611D+00
-       ALPHA(X,Z) = -5.0064898D-10
-       ALPHA(Y,Z) = -1.1053966D-08
- 
-   ISOTROPIC AVERAGE ALPHA =      10.55140 A.U.
- 
- 
-  GAMMA (THIRD HARMONIC GENERATION) AT    0.50000 EV.
- 
- 
-  GAMMA(X,X,X,X) =    -272.31877
-  GAMMA(Y,Y,Y,Y) =     279.50799
-  GAMMA(Z,Z,Z,Z) =      -5.51310
-  GAMMA(X,X,Y,Y) =     179.98516
-  GAMMA(X,X,Z,Z) =      81.33992
-  GAMMA(Y,Y,X,X) =     184.80112
-  GAMMA(Y,Y,Z,Z) =     108.22405
-  GAMMA(Z,Z,X,X) =      80.85389
-  GAMMA(Z,Z,Y,Y) =     102.17581
- 
- 
-  AVERAGE GAMMA VALUE AT    0.50000 =     147.81122
- 
- 
- 
- 
- 
-  TOTAL CPU TIME:            18.49 SECONDS
- 
-  == MOPAC DONE ==
--- 0 ----
diff -cdN ../src.old//testdata.dat ./testdata.dat
*** ../src.old//testdata.dat
--- ./testdata.dat	Thu Jan 26 14:22:20 1995
***************
*** 0 ****
--- 1,117 ----
+      nointer  noxyz + mndo dump=8
+      t=2000 + thermo(298,298) force isotope
+      ROT=2 
+      DEMONSTRATION OF MOPAC - FORCE AND THERMODYNAMICS CALCULATION
+      FORMALDEHYDE, MNDO ENERGY = -32.8819  See Manual.
+      O    
+      C    1.216487  1                                 1  0  0 
+      H    1.106109  1  123.513310  1                  2  1  0 
+      H    1.106109  1  123.513310  1  180.000000  1   2  1  3 
+      0    0.000000  0    0.000000  0    0.000000  0   0  0  0
+    CHARGE=2 OPEN(4,3) SINGLET ROOT=6 force 
+   Methane RHF dication, 6th singlet state (totally symmetric)
+    Check that vibrational frequencies are 1343(T) 2488(A) 2554(E) 4620(T) +/-1
+    H    
+    C    1.2298156  
+    H    1.2298156  0    109.471221  
+    H    1.2298156  0    109.471221  0   -120.000000  0    2    1    3
+    H    1.2298156  0    109.471221  0    120.000000  0    2    1    3
+  
+   gnorm=0  & 
+                        PM3 
+   Methanol   Check that heat of formation is -51.8773 kcal/mol
+     C
+     O 1.4 1             1
+     H 1.0 1 109 1       1 2
+     H 1.0 1 109 1 120 1 1 2 3
+     H 1.0 1 109 1 120 1 1 2 4
+     H 1.0 1 120 1  30 1 2 1 3
+  
+    gnorm=0    AIGIN
+   Ethane, showing use of Gaussian Z-matrix input (AIGIN is necessary in this run)
+   Check that heat of formation is -19.7220
+    C  
+    C     1     r21    
+    H     2     r32       1     a321   
+    H     2     r32       1     a321      3  120   0
+    H     2     r32       1     a321      3  240   0
+    H     1     r32       2     a321      3  d6321 0
+    H     1     r32       2     a321      3 -d6321 0
+    H     1     r32       2     a321      3  180   0
+  
+       r21        1.5
+       r32        1.0
+       a321     109.0
+       d6321     60.0
+  
+    ts  +
+             am1
+    Location of transition state for HCN -> HNC
+    Check the heat of formation is 118.456 kcal/mol
+    H
+    C  1.3 1
+    N  1.3 1 60 1
+  
+    SYMMETRY  CHARGE=2 OPEN(4,3) SINGLET ROOT=6 setup=testdata.dat rot=12
+   Methane  Check that the extra keywords are being read in from start of file
+   
+    H    0.0000000  0      0.000000  0      0.000000  0    0    0    0      0.4123
+    C    1.2298156  1      0.000000  0      0.000000  0    1    0    0      0.3509
+    H    1.2298156  0    109.471000  0      0.000000  0    2    1    0      0.4123
+    H    1.2298156  0    109.471000  0   -120.000000  0    2    1    3      0.4123
+    H    1.2298156  0    109.471000  0    120.000000  0    2    1    3      0.4123
+  
+     2  1    3   4   5
+  
+    1scf  
+   Aniline  Check that atom labels are being output.
+    
+    C(Ph-NH2)    
+    C(Atom 2)    1.4 1             1
+    C(Atom 3)    1.4 1 120 1       2 1
+    C(Atom 4)    1.4 1 120 1   0 1 3 2 1
+    C(Atom 5)    1.4 1 120 1   0 1 4 3 2
+    C(Atom 6)    1.4 1 120 1   0 1 5 4 3
+    N(Ph-NH2)    1.4 1 120 1 180 1 1 2 3
+    H(on N)      1.0 1 109 1   0 1 7 1 2
+    H(on N)      1.0 1 109 1 120 1 7 1 8
+    H(Ortho)     1.0 1 120 1 180 1 2 3 4
+    H(Meta)      1.0 1 120 1 180 1 3 4 5
+    H(Para)      1.0 1 120 1 180 1 4 5 6
+    H(Meta')     1.0 1 120 1 180 1 5 6 1
+    H(Ortho')    1.0 1 120 1 180 1 6 1 2
+  
+    pm3 denout  symmetry
+    Formaldehyde.  Density matrix written to disk.
+  
+  o
+  c 1.2 1             1
+  h 1.1 1 120 1       2 1
+  h 1.1 0 120 0 180 0 2 1 3
+  
+  3 1 4
+  3 2 4
+  
+   am1 symm
+  water.  This calculation ensures that the information on formaldehyde is lost.
+  
+  o
+  h 1.1 1           1
+  h 1.1 0  104 1    1 2 
+  
+  2 1 3
+  
+  oldgeo mndo 
+   Water  The geometry used is that for the previous run (water)
+  
+    pm3 oldens symmetry gnorm=0  pl  1scf
+    Formaldehyde  Check the PLS to ensure that the density matrix was read
+  in correctly
+    O    0.0000000  0      0.000000  0      
+    C    1.2020463  1      0.000000  0      
+    H    1.0912524  1    121.774563  1      
+    H    1.0912524  0    121.774563  0    180.000000  0    2    1    3      
+  
+     3  1    4
+     3  2    4
+  
diff -cdN ../src.old//tests.csh ./tests.csh
*** ../src.old//tests.csh
--- ./tests.csh	Mon Jan 30 10:52:32 1995
***************
*** 0 ****
--- 1,8 ----
+ #!/usr/bin/tcsh
+ foreach x (*.dat)
+     rm -rf temp
+     mkdir temp
+     cp $x temp/FOR005
+     (cd temp ; ../mopac )
+     cp temp/FOR006 $x:r.out
+ end
diff -cdN ../src.old//timer.f ./timer.f
*** ../src.old//timer.f	Tue Apr 20 03:38:20 1993
--- ./timer.f	Tue Jan 17 13:06:31 1995
***************
*** 14,20 ****
  C
  C   THE ACT OF CALLING THIS ROUTINE COSTS 0.026 SECONDS
  C
!       T0=T0+0.026
        T2=SECOND()
        IF(INDEX(A,'BEF').EQ.0.AND.A.NE.' ')THEN
           WRITE(6,'(2X,A,A,F7.2,A,F8.2)')
--- 14,20 ----
  C
  C   THE ACT OF CALLING THIS ROUTINE COSTS 0.026 SECONDS
  C
!       T0=T0+0.026D0
        T2=SECOND()
        IF(INDEX(A,'BEF').EQ.0.AND.A.NE.' ')THEN
           WRITE(6,'(2X,A,A,F7.2,A,F8.2)')
***************
*** 22,27 ****
        ELSE
           WRITE(6,'(40X,''TIME LOST:'',F7.2)')T2-T1
        ENDIF
!       T1=T2+0.026
        RETURN
        END
--- 22,27 ----
        ELSE
           WRITE(6,'(40X,''TIME LOST:'',F7.2)')T2-T1
        ENDIF
!       T1=T2+0.026D0
        RETURN
        END
diff -cdN ../src.old//timout.f ./timout.f
*** ../src.old//timout.f	Tue Apr 20 03:38:20 1993
--- ./timout.f	Tue Jan 17 13:07:04 1995
***************
*** 63,71 ****
           DO 20 I = 1,NUMAT
              IF = NFIRST(I)
              IL = NLAST(I)
!             SUM = 0.0
!             POP(I) = 0.0
!             CHRG(I) = 0.0
              DO 10 J = IF,IL
  C
  C    Diagonal element of mulliken matrix
--- 63,71 ----
           DO 20 I = 1,NUMAT
              IF = NFIRST(I)
              IL = NLAST(I)
!             SUM = 0.0D0
!             POP(I) = 0.0D0
!             CHRG(I) = 0.0D0
              DO 10 J = IF,IL
  C
  C    Diagonal element of mulliken matrix
***************
*** 121,127 ****
  C
  C  Write out the Dipole Moment
  C
!       IF(KCHRGE.NE.0) DIP = 0.0
        WRITE(16, '(I4,F10.3,''  Charge,Dipole Moment'')', ERR=30)
       1KCHRGE, DIP
        RETURN
--- 121,127 ----
  C
  C  Write out the Dipole Moment
  C
!       IF(KCHRGE.NE.0) DIP = 0.0D0
        WRITE(16, '(I4,F10.3,''  Charge,Dipole Moment'')', ERR=30)
       1KCHRGE, DIP
        RETURN
diff -cdN ../src.old//update.f ./update.f
*** ../src.old//update.f	Tue Apr 20 03:38:20 1993
--- ./update.f	Tue Jan 17 15:08:31 1995
***************
*** 85,91 ****
    240 GUESS3(IELMNT,KFN)=PARAM
        RETURN
    250 NATORB(IELMNT)=PARAM
!       I=INT(PARAM+0.5)
        IF(I.NE.9.AND.I.NE.4.AND.I.NE.1)THEN
           WRITE(6,'(///10X,'' UNACCEPTABLE VALUE FOR NO. OF ORBITALS'',
       1'' ON ATOM'')')
--- 85,91 ----
    240 GUESS3(IELMNT,KFN)=PARAM
        RETURN
    250 NATORB(IELMNT)=PARAM
!       I=INT(PARAM+0.5D0)
        IF(I.NE.9.AND.I.NE.4.AND.I.NE.1)THEN
           WRITE(6,'(///10X,'' UNACCEPTABLE VALUE FOR NO. OF ORBITALS'',
       1'' ON ATOM'')')
diff -cdN ../src.old//upsurf.f ./upsurf.f
*** ../src.old//upsurf.f	Tue Apr 20 03:38:20 1993
--- ./upsurf.f	Tue Jan 17 15:09:06 1995
***************
*** 14,36 ****
        DIMENSION XX(3),XA(3),COBAS(3,NPPA,NUMATM)
        DIMENSION XSP(4,MAXNSS),NSET(MAXNSS,MAXNSS)
  C     Added to satisfy the LAPACK call to DGETRI. SJC 1/10/93
!       DIMENSION IPIV(MAXNSS)   
        LOGICAL DIN(NPPA)
        COMMON / SOLVI / NSPA,NSS,IATSP(MAXNSS),NAR(MAXNSS),NN(2,NUMATM)
        COMMON / SOLVR / DIPL,FEPSI,RDS,DISEX2,TM(3,3,NUMATM),
       &                AAMAT(MAXNSS,MAXNSS),ADMAT(MAXNSS,MAXNSS), 
       &                CCMAT(MAXORB,MAXORB), BBMAT(MAXORB,MAXNSS),
       &                COSURF(3,MAXNSS), SRAD(NUMATM)
!       COMMON /DIRVEC/ DIRVEC(3,NPPA), DIRTM(3,NPPA)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE (IW,IFILES(6))
        EQUIVALENCE (ADMAT,COBAS),(BBMAT,XSP)
!       FDIAG=1.05D0*SQRT(NPPA+0.)
        AREA=0.0D0
!       DS=SQRT(4./NSPA)
        C2DS=COS(2.0D0*DS)
        NSS1=0
        DO 1000 I=1,NUMAT
--- 14,37 ----
        DIMENSION XX(3),XA(3),COBAS(3,NPPA,NUMATM)
        DIMENSION XSP(4,MAXNSS),NSET(MAXNSS,MAXNSS)
  C     Added to satisfy the LAPACK call to DGETRI. SJC 1/10/93
!       DIMENSION IPIV(MAXNSS)
!       DIMENSION DIRTM(3,NPPA)
        LOGICAL DIN(NPPA)
        COMMON / SOLVI / NSPA,NSS,IATSP(MAXNSS),NAR(MAXNSS),NN(2,NUMATM)
        COMMON / SOLVR / DIPL,FEPSI,RDS,DISEX2,TM(3,3,NUMATM),
       &                AAMAT(MAXNSS,MAXNSS),ADMAT(MAXNSS,MAXNSS), 
       &                CCMAT(MAXORB,MAXORB), BBMAT(MAXORB,MAXNSS),
       &                COSURF(3,MAXNSS), SRAD(NUMATM)
!       COMMON /DIRVEC/ DIRVEC(3,NPPA), NNX(3,NUMATM)
        COMMON /MOLKST/ NUMAT,NAT(NUMATM),NFIRST(NUMATM),NMIDLE(NUMATM),
       1                NLAST(NUMATM), NORBS, NELECS,NALPHA,NBETA,
       2                NCLOSE,NOPEN,NDUMY,FRACT
        COMMON /CHANEL/ IFILES(30)
        EQUIVALENCE (IW,IFILES(6))
        EQUIVALENCE (ADMAT,COBAS),(BBMAT,XSP)
!       FDIAG=1.05D0*SQRT(NPPA+0.D0)
        AREA=0.0D0
!       DS=SQRT(4.D0/NSPA)
        C2DS=COS(2.0D0*DS)
        NSS1=0
        DO 1000 I=1,NUMAT
***************
*** 121,127 ****
  2020      CONTINUE        
            DO 2040 K = 1, NUMAT
              IF (K . EQ. I) GO TO 2040
!             DIST=0.
              DO 2030 IX=1,3
                DIST = DIST + (XX(IX) - COORD(IX,K))**2
  2030        CONTINUE
--- 122,128 ----
  2020      CONTINUE        
            DO 2040 K = 1, NUMAT
              IF (K . EQ. I) GO TO 2040
!             DIST=0.D0
              DO 2030 IX=1,3
                DIST = DIST + (XX(IX) - COORD(IX,K))**2
  2030        CONTINUE
***************
*** 150,156 ****
  345       XSP(IX,IPM)=XSP(IX,IPM)+DIRTM(IX,J)
  350     CONTINUE
          DO 400 IPS=NSS0,NSS1
!           DIST=0.
            IF (NAR(IPS) .EQ. 0) THEN
              GO TO 400
            END IF
--- 151,157 ----
  345       XSP(IX,IPM)=XSP(IX,IPM)+DIRTM(IX,J)
  350     CONTINUE
          DO 400 IPS=NSS0,NSS1
!           DIST=0.D0
            IF (NAR(IPS) .EQ. 0) THEN
              GO TO 400
            END IF
***************
*** 176,188 ****
          AA=0.D0
          DO 140 K=1,NARI
            J1=NSET(IPS,K)
!           AA=AA+.5*FDIAG
            X1=DIRVEC(1,J1)
            X2=DIRVEC(2,J1)
            X3=DIRVEC(3,J1)
            DO 140 L=1,K-1
              J2=NSET(IPS,L)
!             AA=AA+1./SQRT((X1-DIRVEC(1,J2))**2+
       &             (X2-DIRVEC(2,J2))**2+(X3-DIRVEC(3,J2))**2)
  140     CONTINUE
          AA=2*AA/RI 
--- 177,189 ----
          AA=0.D0
          DO 140 K=1,NARI
            J1=NSET(IPS,K)
!           AA=AA+.5D0*FDIAG
            X1=DIRVEC(1,J1)
            X2=DIRVEC(2,J1)
            X3=DIRVEC(3,J1)
            DO 140 L=1,K-1
              J2=NSET(IPS,L)
!             AA=AA+1.D0/SQRT((X1-DIRVEC(1,J2))**2+
       &             (X2-DIRVEC(2,J2))**2+(X3-DIRVEC(3,J2))**2)
  140     CONTINUE
          AA=2*AA/RI 
***************
*** 195,201 ****
  141     XA(IX)=XSP(IX,IPS)
          DO 169 JPS=1,IPS-1
            NARJ=NAR(JPS)
!           DIST=0.
            DO 143 IX=1,3
  143       DIST=DIST+(XSP(IX,JPS)-XA(IX))**2
            IF (DIST .LT. DISEX2) THEN
--- 196,202 ----
  141     XA(IX)=XSP(IX,IPS)
          DO 169 JPS=1,IPS-1
            NARJ=NAR(JPS)
!           DIST=0.D0
            DO 143 IX=1,3
  143       DIST=DIST+(XSP(IX,JPS)-XA(IX))**2
            IF (DIST .LT. DISEX2) THEN
diff -cdN ../src.old//writmo.f ./writmo.f
*** ../src.old//writmo.f	Tue Apr 20 03:38:20 1993
--- ./writmo.f	Thu Jan 26 15:22:15 1995
***************
*** 3,11 ****
        INCLUDE 'SIZES'
        CHARACTER KEYWRD*241
        DOUBLE PRECISION MECI
        COMMON /KEYWRD/ KEYWRD
        COMMON /ELEMTS/ ELEMNT(107)
!       COMMON /GEOM  / GEO(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /HMATRX/ H(MPACK)
--- 3,12 ----
        INCLUDE 'SIZES'
        CHARACTER KEYWRD*241
        DOUBLE PRECISION MECI
+       COMPLEX SEC, VEC
        COMMON /KEYWRD/ KEYWRD
        COMMON /ELEMTS/ ELEMNT(107)
!       COMMON /GEOM  / GEO(3,NUMATM), XCOORD(3,NUMATM)
        COMMON /GEOKST/ NATOMS,LABELS(NUMATM),
       1                NA(NUMATM),NB(NUMATM),NC(NUMATM)
        COMMON /HMATRX/ H(MPACK)
***************
*** 24,30 ****
        COMMON /NUMSCF/ NSCF
        COMMON /WMATRX/ WJ(N2ELEC), WK(N2ELEC)
        COMMON /ATHEAT/ ATHEAT
!       PARAMETER (MXDIM=MAXORB+NUMATM)
        COMMON /SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDX(MXDIM),ISTA(2)
        COMMON /CORE  / CORE(107)
        COMMON /LAST  / LAST
--- 25,31 ----
        COMMON /NUMSCF/ NSCF
        COMMON /WMATRX/ WJ(N2ELEC), WK(N2ELEC)
        COMMON /ATHEAT/ ATHEAT
!       PARAMETER (MXDIM=MAXPAR+NUMATM)
        COMMON /SYMRES/ TRANS,RTR,SIG,NAME,NAMO(MXDIM),INDX(MXDIM),ISTA(2)
        COMMON /CORE  / CORE(107)
        COMMON /LAST  / LAST
***************
*** 54,63 ****
--- 55,66 ----
        DIMENSION Q(MAXORB), Q2(MAXORB), COORD(3,NUMATM)
       1,IEL1(107), NELEMT(107), IEL2(107)
        DIMENSION W(N2ELEC), DUMY(3)
+       DIMENSION GCOORD(1)
        LOGICAL UHF, CI, SINGLT, TRIPLT, EXCITD, PRTGRA, STILL
        CHARACTER TYPE(3)*11, IDATE*24, CALCN(2)*5, GTYPE*13, GRTYPE*14,
       1          FLEPO(16)*58, ITER(2)*58, NUMBRS(11)*1, GETNAM*80
        CHARACTER*2 ELEMNT, IELEMT(20), CALTYP*7, NAMFIL*80, NAME*4
+       CHARACTER NAMO*4, ISTA*4
        SAVE ICALCN, NUMBRS, CALCN, TYPE, FLEPO, ITER
        EQUIVALENCE (W,WJ)
        DOUBLE PRECISION WJ, WK
***************
*** 155,160 ****
--- 158,164 ----
  C COSMO change
        IF (ISEPS) THEN
          CALL DIELEN(EDIE)
+         IW = 6
          WRITE(IW,'(    10X,''DIELECTRIC ENERGY       ='',F17.5,'' EV''
       1  )')EDIE
        ENDIF
***************
*** 202,208 ****
       1        ,'' DEGREES'')')XREACT*DEGREE
           ENDIF
           WRITE(6,'(    10X,''REACTION GRADIENT       ='',F17.5,A14
!      1    )')GCOORD,GRTYPE
        ENDIF
        IF(NALPHA.GT.0)THEN
           EIONIS=-MAX(EIGS(NALPHA), EIGB(NBETA))
--- 206,212 ----
       1        ,'' DEGREES'')')XREACT*DEGREE
           ENDIF
           WRITE(6,'(    10X,''REACTION GRADIENT       ='',F17.5,A14
!      1    )')GCOORD(1),GRTYPE
        ENDIF
        IF(NALPHA.GT.0)THEN
           EIONIS=-MAX(EIGS(NALPHA), EIGB(NBETA))
***************
*** 237,243 ****
       1WRITE(6,'(    10X,''MOLECULAR WEIGHT        ='',F11.3)')SUMW
        IF(LATOM.EQ.0) WRITE(6,'(/)')
        WRITE(6,'(10X,''SCF CALCULATIONS  =   '',I14 )') NSCF
!       TIM=SECOND(1)-TIME0
        I=TIM*0.000001D0
        TIM=TIM-I*1000000
        CALL TIMOUT(6,TIM)
--- 241,247 ----
       1WRITE(6,'(    10X,''MOLECULAR WEIGHT        ='',F11.3)')SUMW
        IF(LATOM.EQ.0) WRITE(6,'(/)')
        WRITE(6,'(10X,''SCF CALCULATIONS  =   '',I14 )') NSCF
!       TIM=SECOND()-TIME0
        I=TIM*0.000001D0
        TIM=TIM-I*1000000
        CALL TIMOUT(6,TIM)
***************
*** 591,597 ****
       1        ,'' DEGREES'')')XREACT*DEGREE
           ENDIF
           WRITE(IWRITE,'(    10X,''REACTION GRADIENT       ='',F17.6,A14
!      1    )')GCOORD,GRTYPE
        ENDIF
        WRITE(IWRITE,'(  10X,''DIPOLE                  =''
       1,F16.5, '' DEBYE'')')DIP
--- 595,601 ----
       1        ,'' DEGREES'')')XREACT*DEGREE
           ENDIF
           WRITE(IWRITE,'(    10X,''REACTION GRADIENT       ='',F17.6,A14
!      1    )')GCOORD(1),GRTYPE
        ENDIF
        WRITE(IWRITE,'(  10X,''DIPOLE                  =''
       1,F16.5, '' DEBYE'')')DIP
***************
*** 615,621 ****
        WRITE(IWRITE,'(  10X,''MOLECULAR WEIGHT        ='',F14.3)')SUMW
        WRITE(IWRITE,'(  10X,''SCF CALCULATIONS        =''
       1,I10)') NSCF
!       TIM=SECOND(1)-TIME0
        CALL TIMOUT(IWRITE,TIM)
        WRITE(IWRITE,'(//10X,''FINAL GEOMETRY OBTAINED'',36X,''CHARGE'')')
        CALL GEOUT(IWRITE)
--- 619,625 ----
        WRITE(IWRITE,'(  10X,''MOLECULAR WEIGHT        ='',F14.3)')SUMW
        WRITE(IWRITE,'(  10X,''SCF CALCULATIONS        =''
       1,I10)') NSCF
!       TIM=SECOND()-TIME0
        CALL TIMOUT(IWRITE,TIM)
        WRITE(IWRITE,'(//10X,''FINAL GEOMETRY OBTAINED'',36X,''CHARGE'')')
        CALL GEOUT(IWRITE)
Modified: Mon Jan 30 17:00:00 1995 GMT
Page accessed 823 times since Sat Apr 17 21:55:28 1999 GMT