From KUS%SUEARN2.BITNET@mps.ohio-state.edu  Sat Feb  4 01:36:42 1995
Received: from ohstpw.mps.ohio-state.edu  for KUS%SUEARN2.BITNET@mps.ohio-state.edu
	by www.ccl.net (8.6.9/930601.1506) id BAA02867; Sat, 4 Feb 1995 01:34:22 -0500
Received: from SUEARN2.BITNET (MAILER@SUEARN2)
 by MPS.OHIO-STATE.EDU (PMDF V4.3-10 #9122)
 id <01HMMTY3VL288WWWX0@MPS.OHIO-STATE.EDU>; Sat,
 04 Feb 1995 01:34:20 -0500 (EST)
Date: Fri, 03 Feb 95 20:53 MSK
From: Mikhail Kuzminsky -135-6388 <KUS%SUEARN2.BITNET@mps.ohio-state.edu> (095)
Subject: CCL:FORTRAN 90 -summary                                        turmetho
To: CHEMISTRY@ccl.net
Message-id: <01HMMTY3YJ5E8WWWX0@MPS.OHIO-STATE.EDU>
Content-transfer-encoding: 7BIT


    Dear CCLers,
I received a lot of answers about possible sources of information
about FORTRAN 90. Thanks for all who helps me.
   The summary follows (I excluded only one letter on russian :-) ) :

1)
> The Fortran 90 standard is a very long document. I doubt that you
> will find it on the net, or even in journal articles. The official
> standard is certainly available from ANSI, but probably
> expensive. There are, however, many books available that describe
> the standard in a more readable form. Unless you want to write
> a compiler, this is probably the best source for information.
>
> ------------------------------------------------------------------------------
> Konrad Hinsen                     | E-Mail: hinsenk@ere.umontreal.ca
> Departement de Chimie             | Tel.: +1-514-343-6111 ext. 3953
> Universite de Montreal            | Fax:  +1-514-343-7586
> C.P. 6128, succ. A                | Deutsch/Esperanto/English/Nederlands/
> Montreal (QC) H3C 3J7             | Francais (phase experimentale)
> ------------------------------------------------------------------------------
2)
> There's an excellent book from the "nutshell"-series:
>
>       James F. Kerrigan
>       Migrating to Fortran90
>       O'Reilly & Associates, Inc.
>       1993
>       ISBN: 1-56592-049-X
>
> This book is written for the experienced Fortran77-programer, who
> wants to change to Fortran90. Especially the NEW things (pointers,
> modules and stuff like that) are covered. The appendix contains
> information about commercially available f90 Compilers, f77-Compilers
> with f90-extensions and fundamental f90 publications.
> Michael E. Beck
> Institut fuer Physikalische Chemie II
> Universitaet zu Koeln
> Germany
> beck@fock.pc.uni-koeln.de

3)
> A FAQ that I converted to HTML:
> 	http://lenti.med.umn.edu/~mwd/f90-faq.html
>
> Fortran 90 Tutorial:
> 	http://asis01.cern.ch/CN/CNTUT/f90/Overview.html
>
> General Languages index:
>
>  http://info.cern.ch/hypertext/DataSources/bySubject/Computing/Languages.html
> Mark Dalton       CH3-S-CH2 H                      H      O       H
> Cray Research,Inc.      |   |                      |       \      |
> Los Alamos,NM 87544     CH2-C-COO    //\ ---C--CH2-C-COO    C-CH2-C-COO
> mwd@cray.com                |       |  ||   ||     |       //     |
>                             NH3      \\/ \ / CH    NH3    O       NH3
>                                           NH
> URL = http://lenti.med.umn.edu/~mwd/mwd.html
>
4)
> This is a good web site for Fortran info:
>
>     http://www.fortran.com/fortran/market.html
>
> =============================================================================
> Ed Millard                       |  18201 Von Karman Avenue
> Silicon Graphics Inc.            |  Suite 100
> Developer's Support Group        |  Irvine, CA 92715
> millard@sgi.com                  |  (714) 756-5975
> =============================================================================

5)
> Try WWW-site     http://asis01.cern.ch/CN/CNTUT/f90/Overview.html
> There you can find a detailed tutorial, written by Michael Metcalf,
> CN Division, CERN, CH 1211, Geneva 23, Switzerland.
> =============================================================================
> Dr. Alexander V. Soudackov          Tel:    (0511) 762-5277
> Theoretische Chemie                 E-mail: alex@nov.theochem.uni-hannover.de
> Uni Hannover
> Am Kleinen Felde 30
> 30167 Hannover
> Deutschland
6)
> You may find useful pointers, though, at:
>       http://www.fortran.com/fortran/market.html
> Ross Dickson,  dickson@zinc.chem.ucalgary.ca
> Dept. of Chemistry, The University of Calgary
> Calgary, Alberta, Canada


7)
> ...
> http://www.fortran.com/fortran/market.html
>
> although I haven't looked at it myself. Can I also
> recommend the UK mailbase comp-fortran-90.
> Send a message
>
> join comp-fortran-90 Mikhail Kuzminsky
>
> to mailbase@mailbase.ac.uk (no Subj. needed) in order
> to join. The guys there can certainly help you more.
> ***************** Dr. Martyn Winn **************************************
>  \                                                                    /
>   \ Institut fuer Theoretische Physik, Technische Universitaet Wien, /
>    \  Wiedner Hauptstrasse 8-10, A-1040 Wien, Austria.              /
>     \____                                                       ___/
>          \      Tel: +43 1 58801 5678                          /
>           \     Fax: +43 1 5867760                            /
>            \    E-mail: winn@tph12.tuwien.ac.at              /
>             \   URL: http://tph.tuwien.ac.at/~winn/me.html  /
>              -----------------------------------------------

8)
> From: Andrepeter.Heiner@VTT.FI(Andrepeter Heiner)
> try to get hold of Scientific Computing, Iss. 5, Jan. 1995. There is a very
> nice article on fortran 90. If you can't trace it down, just give me your
> fax ##, so I'll fax you a copy. If this is problematic, I'll send you a copy b
> snail mail. The article also lists a number of sites where
> to get info relating to F90,
>    http://www.fortran.com/fortran.market.html,
>    http://www.nag.co.uk:70
>
> anon. ftp:
>    jkr.cc.rl.ac.uk, /pub/MandR/convert.f90
>    titan.cs.rice.edu, /public/HPFF/draft, /public/HPFF
9)
> Try ftp titan.cs.rice.edu
>   directory /public/HPFF
> Search it's subdirectories.  The draft subdirectory may contain
> useful information (for example, hpf-v11.ps(.Z)).
>
> If you wish I can e-mail you a plain text (about 6000 lines) article
> titled "Fortran 90 for the Fortran 77 programmer".
>
> Moshe Olshansky
> <moshe_o@vnet.ibm.com>

10)
> A tutorial to Fortran 90 is online available:
>
> WWW:     http://rchs1.chemie.uni-regensburg.de/gopher/pub/Tutorial.fortran90
>
> gopher:  gopher rchs1.chemie.uni-regensburg.de
>              5. Data Files                              # the numbers
>                 22. Tutorial.fortran90                  # might be different i
>                                                         # the future
> ftp:     ftp rchs1.chemie.uni-regensburg.de
>          Name .... : anonymous
>          Password: < your_email_address
>          cd pub
>          get Tutorial.fortran90
> --------------------------------------------------------------
> Dr. Herbert H. H. Homeier
> Institut fuer Physikalische und Theoretische Chemie
> Universitaet Regensburg
> D-93040 Regensburg, Germany
> Phone: +49-941-943 4720                FAX  : +49-941-943 2305
> email: na.hhomeier@na-net.ornl.gov
> <A HREF="http://rchs1.uni-regensburg.de/%7Ec5008/">HOMEPAGE</A>
> ---------------------------------------------------------------

Dr. M. Kuzminsky,
N.D.Zelinsky Institute of Organic Chemistry
 e-mail: kus@suearn2.bitnet

From fox@fenris.ucsf.EDU  Sat Feb  4 22:46:37 1995
Received: from cgl.ucsf.EDU  for fox@fenris.ucsf.EDU
	by www.ccl.net (8.6.9/930601.1506) id WAA10268; Sat, 4 Feb 1995 22:00:59 -0500
Received: from fenris.ucsf.EDU (fenris.ucsf.EDU [128.218.14.26]) by cgl.ucsf.EDU (8.6.7/GSC4.24) with SMTP
	id TAA25410 for <CHEMISTRY@ccl.net>; Sat, 4 Feb 1995 19:00:58 -0800
Received: by fenris.ucsf.EDU (1.38.193.4/GSC4.21)
	id AA17641; Sat, 4 Feb 1995 19:00:57 -0800
From: fox@fenris.ucsf.EDU (Thomas Fox)
Message-Id: <9502050300.AA17641@fenris.ucsf.EDU>
Subject: Summary: DFT and H
To: CHEMISTRY@ccl.net
Date: Sat, 4 Feb 95 19:00:57 "PST
Mailer: Elm [revision: 70.85]



Dear CCLers,

first of all thanks to all who took the time and the effort to answer
my question on the calculation of the H radical with G92-DFT. The original
message as well as the responses are at the end of this mail.
It seems that I really encountered a bug in my G92 version, that has been 
fixed in a later release (see the mail from Gary Trucks).

Many of you pointed out that for an one electron system the exchange and
the correlation energy are equal zero. Therefore, the energy that one
achives by using HF can not be improved by a correlation treatment and is
the best energy you can get with a given basis set.

It is certainly true that for one electron there is no correlation
nor exchange. 
However, the behavior of density functional theory is a little different. 
As all functionals are based explicitly on the electron density and not on
individual electrons, one always gets energy contributions arising from these 
terms, even in the case of one single electron. Another important point is 
the fact that in DFT one always calculates the interaction of an electron 
with its own density. This is in contrast to HF, which is self-interaction 
free, and has to be corrected for if one is interested in accurate energies.

Of course, in a one electron system like the H radical one would expect that
all these terms cancel out, so that one would, ideally, end up with the
HF energy. However, these cancellations are not complete, as 
the following list shows. Here I calculated the total energy of the H 
radical with various combinations of X and C functionals.  I think it 
becomes quite clear that adding a Correlation functional has definitely
an impact on the calculated energies...

Method                            E [a.u.]

UHF                              -0.498233

DFT with Exchange only:
Slater exchange                  -0.454027
Xalpha                           -0.467196
Becke88                          -0.495446

DFT with Exchange and Correlation functionals:
Slater X + Vosko-Wilk-Nusair C   -0.493937
Slater X + VWN Functional V      -0.476044
Becke88  + VWN                   -0.535774

Therefore, the notion that in a one electron system the contributions from
the exchange and the correlation functionals to the total energy are zero,
is just wrong.

I guess that part of the confusion arises from the misconception that the 
exchange and correlation functionals in DFT are a one-to-one equivalent to the 
exchange and the correlation many are used to from dealing with the HF method. 
In my view (please, correct me if Im wrong - my lectures on DFT have
been a while, and both my books and the lecture notes are on the other side
of the atlantic :-(), implementing DFT you try to keep your functionals for 
the kinetic and potential energy as simple as possible, and try to compensate 
for that by an appropriate form the the XC functionals (think e.g. of the 
self interaction correction). Maybe someone of you who has more insight and 
experience with DFT could comment on this?

Another question, more from the practical side: As one can see from the
above table, obviously some of the combinations of X and C functionals do
a better job (energy-wise) than others. Now in G92 there are a couple of
different combinations possible - is there any experience which combinations
to avoid, or which one have shown to give the most reliable energies for
chemical reactions, conformational equilibria etc.?

Thanks again to all who shared their thoughts - obviously the problem of
XC contributions in DFT is not as trivial as it may seem...

Th.

And here the original question and the answers:

> I was using the DFT module of Gaussian 92 (HP-PARisc-HPUX-G92/DFT-RevF.4)
> and came across something that looks like a bug to me: when I try to
> calculate an one-electron system (like the H atom) and use the Lee-Yang-Parr
> functional, my G92 version stops with an IEEE division by zero error.
> I browsed through the code, and sure enough found in the LYP subroutine
> a division by Rho(Beta), which is, in the case of one electron, equal zero.
> I dont have access to the original paper right now, so could someone just
> reassure me that this behavior is definitely an unexpected one, and that
> it doesnt mean that the LYP functional is not valid in the limit of one
> electron or if I only have electrons of one spin species (Gaussian shouldnt 
> abort that ungracefully, anyway...).
> 
> ###########################################################################
> From: billys@chmboy.srl.ford.com (Bill Schneider)
> 
> Thomas,
> 
> The LYP functional is intended to approximate the alpha-beta correlation energy
> in a system.  A one-electron system can have no alpha-beta correlation energy
> (there are no beta electrons!) so why would one apply the LYP functional (or
> any correlation functional) to a one-electron system?  You should use the Becke
> exchange formula (which in part accounts for electron self-interaction) and not
> use the LYP functional.
> 
> Hope that helps.
> 
> +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
> Bill Schneider				e-mail: wschneid@chmboy.srl.ford.com
> Chemistry Department			        wschneid@smail.srl.ford.com
> Ford Motor Co., Drop 3083/SRL		phone:  (313) 323-2064
> Dearborn MI 48121-2053			FAX:    (313) 594-2923
> ###########################################################################
> 
> From: chengteh@rhea.cray.com (Chengteh Lee)
> 
> E(LYP) is equal to 0 for H atom with one electron, no correlation.
> 
> Chengteh Lee
> Cray Research, Inc.
> 655E Lone Oak Dr.
> Eagan, MN 55121
> 
> ###########################################################################
> 
> From: bennett@ubaclu.unibas.ch (Frederick Bennett)
> 
> Dear Thomas,
>             as far as I know, this error is probably not unexpected as a
> one electron system has no correlation energy. Try calculating correlation
> energy for H using any correlation method any any package you can find and
> you will see what I mean. Same applies to triples corrections to two
> electron systems, it means nothing. The hartree-fock energy is as good as
> you will get. Even if you are looking at the reaction for example, H + F
> --> HF, the De is just the correlated energy of the HF system minus the
> correlation energy of F minus the HF energy of the H.
> 
>  Hope that this helps.
> 
>  Regards
> 
>  Fred.
> 
> ###########################################################################
> 
> From: fh@qc.ag-berlin.mpg.de (Frank Haase)
> 
> Hi Thomas,
> 
> I've access to TURBOMOLE/DFT  and carried out a restr. open shell duplet
> calc. on the H radical. these are the B3-LYP energies ....
> 
> $energy      SCF           BASIS SET
>    3   -.4018748181423      31G  (from HONDO)
>    4   -.4010021703054      311G  (from HONDO)
> $end
> 
> hope this helps. I recommend to carefully check the B3-LYP energies
> of G92 since we have detected discrepancies in the energies between CADPACK and
> TURBOMOLE on the one hand and G92 on the other hand for medium sized systems 
> (beyond 150 BFs).
> 
> regards
> frank
> -- 
> ---------------------------------------------------------------------------
>                                 Frank Haase                 
>                                 E-mail: fh@oberon.qc.ag-berlin.mpg.de
> ---------------------------------------------------------------------------
> ###########################################################################
> From: lrbu00@xd88.kodak.com
> 
> How can any self-respecting method not have trouble computing correlation
> energies by any means at all for a 1 electron system ?...Think about it...
> 
> Regards,
> 
> John
> 
> -- 
> 
> John M. McKelvey			email: mckelvey@Kodak.COM
> Computational Science Laboratory	phone: (716) 477-3335
> 2nd Floor, Bldg 83, RL
> Eastman Kodak Company			
> Rochester, NY 14650-2216
> 
> ###########################################################################
> From: JOHNSONB@B.PSC.EDU
> 
> >I was using the DFT module of Gaussian 92 (HP-PARisc-HPUX-G92/DFT-RevF.4)
> >and came across something that looks like a bug to me: when I try to
> >calculate an one-electron system (like the H atom) and use the Lee-Yang-Parr
> >functional, my G92 version stops with an IEEE division by zero error.
> >I browsed through the code, and sure enough found in the LYP subroutine
> >a division by Rho(Beta), which is, in the case of one electron, equal zero.
> >I dont have access to the original paper right now, so could someone just
> >reassure me that this behavior is definitely an unexpected one, and that
> >it doesnt mean that the LYP functional is not valid in the limit of one
> >electron or if I only have electrons of one spin species (Gaussian shouldnt 
> >abort that ungracefully, anyway...).
> 
> This is definitely not the correct behavior -- it's a bug in the code 
> I wrote for Gaussian.  Not long after Gaussian obtained the code from me,
> I came across the bug and comunicated it to Gaussian, Inc. but apparently
> they have not done anything about it.
> 
> >A related question is how to get in contact with these Gaussian guys...I
> >sent a message to help@gaussian.com some weeks ago, but havent heard from 
> >them back.
> 
> >And, could anybody who has access to a DFT implementation (maybe there is
> >even a G92 version out there that doesnt show this behavior) that 
> >supports Becke 3 parameter XC in connection with the LYP C functional
> >calculate the energy for a H radical (with a 6-31G* basis) for me? Pointers
> >to papers where this has been done (maybe as a test case for the functional)
> >are, of course, also highly welcome.
> 
> I could do the calculation for you using the Q-Chem program, which doesn't
> have this bug.  You'd need to send me the parameters used in the Becke3LYP
> functional, though.  There seems to be a lot of confusion in the literature
> over the definition of this method.  To my knowledge, there has never been a 
> paper published in which the definition of the Becke3LYP method in G92/DFT
> has actually been given, nor does there seem to be any systematic validation
> study thoroughly documenting its performance.
> 
> I don't know if you're aware, but the method in G92/DFT is not a method of
> Becke's.  I have talked with Becke about this, and he is quite skeptical
> about the validity of using the particular LYP functional with his
> half-and-half approach employing his exchange functional.  So, you may want
> to reconsider whether this method is the one you actually want to use.
> 
> Best regards,
> Benny Johnson
> Q-Chem, Inc.
> 317 Whipple St.
> Pittsburgh, PA  15218
> 
> ###########################################################################
> From: m10!trucks@uunet.uu.net (Gary Trucks)
> 
> Thomas Fox wrote:
> >>I was using the DFT module of Gaussian 92 (HP-PARisc-HPUX-G92/DFT-RevF.4)
> >>and came across something that looks like a bug to me: when I try to
> >>calculate an one-electron system (like the H atom) and use the Lee-Yang-Parr
> >>functional, my G92 version stops with an IEEE division by zero error.
> 
> This problem was fixed some time ago (G92/DFT Rev.G); it does not affect
> systems with more electrons. If you need this fix, contact Gaussian, Inc.,
> and it will be sent to you at no charge.
> 
> Benny Johnson responded:
> >There seems to be a lot of confusion in the literature over the definition
> >of this method.  To my knowledge, there has never been a paper published in
> >which the definition of the Becke3LYP method in G92/DFT has actually been
> >given, nor does there seem to be any systematic validation study thoroughly
> >documenting its performance.
> 
> This is not correct. Becke3LYP is specified completely and calibrated in
> numerous papers and presentations.  Here are a few examples:
> 
>    P.J. Stephens, F.J. Devlin, M.J. Frisch and C.F. Chabalowski, 
>    "Ab Initio Calculations of Vibrational Absorption and Circular 
>    Dichroism Spectra Using SCF, MP2, and Density Functional Theory
>    Force Fields," J. Phys. Chem. 98, 11623 (1994).
> 
>    Yue Qin and Ralph A. Wheeler, "Density-functional methods give 
>    accurate vibrational frequencies and spin densities for phenoxyl
>    radical," J. Chem. Phys. 102, 1689 (1995).
> 
>    Cary Chabalowski, "Current trends in Computational Chemistry"
> 
>    Phil Stephens, "Faraday Discussions"
> 
>    P.J. Stephens, F.J. Devlin, C.S. Ashvar, C.F. Chabalowski and 
>    M.J. Frisch, "Theoretical Calculation of Vibrational Circular 
>    Dichroism Spectra," Faraday Discucc. 99 (1994) in press.  
>  
> (Phil's work was also discussed in C&E News, January 16 (1995) 27.)
> 
> Johnson continues:
> >I don't know if you're aware, but the method in G92/DFT is not a method of
> >Becke's.  I have talked with Becke about this, and he is quite skeptical
> >about the validity of using the particular LYP functional with his
> >half-and-half approach employing his exchange functional.  So, you may want
> >to reconsider whether this method is the one you actually want to use.
> 
> This confuses the Becke3LYP functional with Becke's half-and-half theory.
> Becke3LYP is based on the suggestion by Becke of exact (i.e., Hartree-Fock)
> exchange with local and gradient-corrected exchange and correlation terms
> (A.D. Becke, "Density-functional thermochemistry III. The role of exact
> exchange," J. Chem. Phys. 98, 5648 (1993)) and is *NOT* based on his half-
> and-half theory (A.D. Becke, "A new mixing of Hartree-Fock and local density-
> functional theories," J. Chem. Phys. 98, 1372 (1993)).
> 
> Sincerely,
> 
> Gary Trucks
> Gaussian, Inc.
> 
> ###########################################################################
--

Thomas Fox                               e-mail: fox@cgl.ucsf.edu
Dept. of Pharmaceutical Chemistry
University of California
San Francisco, CA 94143-0446
				 ,,,  
                                (o o)
-----------------------------ooo-(^)-ooo-------------------------------------
                                  U  
The years of peak mental activity are undoubtedly between the ages of
four and eighteen. At four we know all the questions, at eighteen all
the answers.
-----------------------------------------------------------------------------

           $$$  Disclaimer: opinions blah blah blah mine...  $$$
				 ***

