Dear Ray (wc5879),
Regards the most up to date source code and your comment:
"Now the charge density is written correctly.
To obtain the most up to date source code, use
svn co
http://theory.cm.utexas.edu/svn/bader"
I downloaded it and compile it, and used the code to calculate bond critical points for a molecule structure, however, it says:
Using least square gradient
This function is broken right now.
When I used the code released on 02/08/20 - Version 1.04 Released, I am able to calculate the bond critical points, and it says:
Using least square gradient
CRITICAL POINTS INFO WRITEN TO CPF.dat
CRITICAL POINTS FOUND: 13880
FINDING UNIQUE CRITICAL POINTS...
Found a unique bond critical point
Found a unique bond critical point
Found a unique bond critical point
So I think the most up to date source code has not updated the critical point calculation yet, because it says the "function is broken right now."
So I compare the code before update and after update, for subroutine critpoint_mod.f90, and found where to print the electron density, so for the before-update version, in line 552,
line 550, !PRINT *, SQRT(cpl(i)%force(1)**2 + cpl(i)%force(2)**2 + &
line 551, ! cpl(i)%force(3)**2)
line 552, I add WRITE (98,*) "Charge density is"
WRITE (98,*) cpl(i)%rho/vol
when I complied it, it tells that
critpoint_mod.f90:553:35:
WRITE (98,*) cpl(i)%rho/vol
1
Error: ‘rho’ at (1) is not a member of the ‘cpc’ structure
So, in summary:
1. looks like critical point does not work for the most update code (that's say it is testing version), but works for the code before update (the code released on 02/08/20 - Version 1.04, that is say it is a stable version)
2. is it possible to write a line for the electron density on the stable version, such as
line 552, I add WRITE (98,*) "Charge density is"
WRITE (98,*) cpl(i)%rho/vol
since I am not familiar with your code, I dont know where the electron density is located, but should not be cpl(i)%rho.
Could you please add such a line, so we can use the stable version and calculate the electron density on the bond critical point?
Thanks!
Fangyong