SCF_Szabo

This is a C version of the SCF code found in Appendix B of Modern Quantum Chemistry, An Introduction to Electronic Structure Theory by A. Szabo and N. Ostlund. I have included a built executable "scf_basic_version_1_0" and an output file called "out" which lists the results. Run the command "make" to build this. Note that this software is not designed to be either efficient in terms of performance or in terms of coding. It is designed as a bit of fun to convert the original Fortran IV code into something a bit more modern - C and also to demonstrate the key principles of the SCF routine when calculating the HeH+ molecule. Limited to STO-nG (n=1, 2 or 3) series basis set and 2 atoms only.

10
5
C

#SCF_Szabo

This code has been written to convert the SCF sample code from Appendix B of the Modern Quantum Chemistry - An Introduction to Electronic Structure (A. Szabo and N. Ostlund) from Fortran IV to C.

Comments are welcome by email - [email protected] but note that this code is not designed to be either computationally efficient or code efficient. It is written specifically to make it easier to follow the SCF procedure in the book.
To that effect it is limited to the STO-nG (n=1, 2 or 3) basis set and to the 2 atom molecule HeH+.
The matrix diagonalisation procedure depends on the system having just two atoms.

I have included a makefile, an executable and a log file showing the output.

The code originally written by Szabo and Ostlund is a great launchpad for those interested in developing code of this nature for full use in general computational chemistry systems.
I have commented the code to show which equations in the book are being coded at each step of the SCF procedure and I have also numbered the steps involved to help others see what is going on.