Open agoetz opened 1 year ago
I can work on this one.
Thanks @akhilshajan . @Madu86 please let Akhil know what else we need to keep in mind when changing output format (your test scripts, QUICK tests reference output, Amber tests reference output etc). Thanks.
Good suggestion but not sure if we want to do this as we approach a release. You will have to change runtest script, reference test output files and file based QM/MM interface in AMBER. @agoetz Can you please confirm the last one? Is this quick_module.f90? Separate reference output files are no longer available for AMBER tests.
This is a good point to avoid large changes right before a release. On the other hand more people are starting to use QUICK and it would be good to make changes in output format sooner than later to avoid breaking any interfaces people may write.
The file based QM/MM interface in AMBER is in qm2_extern_quick_module.F90
. Relevant is subroutine read_results()
. Specifically, gradients are read in the code block starting at line 544
! look for QM gradients and read into dxyzqm
if ( do_grad ) then
if (read_buffer(1:21) == ' ANALYTICAL GRADIENT:' ) then
do i = 1, 3
read (iunit, '(a)', iostat = ios) read_buffer
end do
do iqm = 1, nqmatoms
do ixyz = 1, 3
read (iunit, '(a)', iostat = ios) read_buffer
if (ios < 0) then
call sander_bomb('read_results (qm2_extern_quick_module)', &
'Error reading Quick output from file '//outfile, &
'(Problem reading QM gradient.)')
end if
read (read_buffer(24:),*) dxyzqm(ixyz,iqm)
end do
end do
end if
end if
Currently the gradient is printed in a single column and there is a typo, VARIABLES is missing an A.
I suggest to print it by atom. Renaming to ATOM will also fix the typo.
I can fix it but I don't know when I find time. It might required updating tests and/or test scripts. If someone works on this please comment and mention others so we don't have two people working on it.