Sunday, August 26, 2012

Funny code comments

Funny code comments is a perennial topic of conversation over group lunch. This one was found by Casper, in the Fock2 subroutine.  It's part of the MOPAC6 six code I implemented in GAMESS back in 1992, but I didn't add it.  Perhaps Mr MOPAC?

C---C THIS FORMS THE TWO-ELECTRON TWO-CENTER REPULSION PART OF THE FOCK
C---C MATRIX.  THE CODE HERE IS HARD TO FOLLOW,
C---C AND IMPOSSIBLE TO MODIFY!,
C---C BUT IT WORKS,

Have you come across funny code comment?
Post a Comment