Previous Thread
Next Thread
Print Thread
#104 09/27/03 09:41 PM
Joined: Sep 2003
Posts: 8,659
Likes: 26
rmv Online Content OP
Forum Member
OP Online Content
Forum Member
Joined: Sep 2003
Posts: 8,659
Likes: 26
I've noticed that there seems to be a problem when computing correlation functions using CHARMM compiled with Linux PGI; large artefacts are observed in the results of CORFUN which are absent when the same calculation is repeated using CHARMM compiled with GNU g77.

Has anyone else noted this problem, and is there a workaround or fix for this?

TIA


Rick Venable
computational chemist

Joined: Sep 2003
Posts: 395
Forum Member
Offline
Forum Member
Joined: Sep 2003
Posts: 395
Rick,
CORFUN has two methods that should give nearly identical results, DIREct and FFT. The default is FFT, and it's much faster. Could you try both and see if the problem is with the FFT code, or is somewhere else...

Bernie

A
Anonymous
Unregistered
Anonymous
Unregistered
A
dear Rick, naive question, does C(tau)=<f(t)f(t-tau)> show the wild artifacts only with certain types of functions f, or at characteristic values of tau, eg, tau ~0. truncation error is possible. how important is this problem...is gnu f77 an obviously better compiler? richard pan, happy to work towards an acceptable resolution...

Joined: Sep 2003
Posts: 4,883
Likes: 12
Forum Member
Offline
Forum Member
Joined: Sep 2003
Posts: 4,883
Likes: 12
The problem occurs when the P2 correlation function is computed using FFT. I get the same results with pgf77 (v 4.3 and 5.0) and pgf90 (v5.0) and I believe it to be a compiler bug (which I have not reported to the Portland people). It disappears if you turn off optimization for cordyn.f in correl.mk:
$(LIB)/correl.a(cordyn.o) : $(SRC)/correl/cordyn.src
$(FLX) $(SRC)/correl/cordyn.src
# NB: corfun using fft goes wrong using pgf77 with FC2 LNI
$(FC0) cordyn.f

A workaround without recompiling is to use DIREct instead of FFT for the correlation function calculation.

Lennart


Lennart Nilsson
Karolinska Institutet
Stockholm, Sweden

Moderated by  BRBrooks, bucknerj, lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Release build 20201027)
Responsive Width:

PHP: 7.3.31-1~deb10u5 Page Time: 0.014s Queries: 22 (0.010s) Memory: 0.7403 MB (Peak: 0.7895 MB) Data Comp: Off Server Time: 2023-11-28 20:41:56 UTC
Valid HTML 5 and Valid CSS