-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message for mismatching kinds in REFTRAJ #2704
Comments
[CP2K:18687] Error with Reftraj ensemble Dear All, I am reporting the same issue as someone else has found on github: 'In motion/integrator.F (line 1582 of the current master branch) there is a check to make sure the elements in the trajectory snapshots are consistent: IF (element_symbol /= element_symbol_ref0) THEN If kinds in the .xyz reference trajectory are specified with aliases (e.g. O1 ) the variable 'element_symbol' will be 'O1' while 'element_symbol_ref0' will have the value of 'O', thus failing the check. Currently this completely hinders the use of element aliases with ensemble REFTRAJ.' The reftraj functionality with special kinds being applied to different species of every frame of a trajectory file for a QM calculation is key to my workflow, so any help working out how to get this working again would greatly appreciated! I thought I had a quick fix by simply removing the check a recompiling, which seemed to be working, however, now I get spurious memeory errors - unsure if this is related to the code change or not. Thank you for your time and help! All the best, Kit |
I've investigated this issue and found the reason for this error. when using the REFTRAJ ensemble in MD cp2k requires two files; the reference topology file specified in cp2k will read the topology file of format { I think the confusion comes from the error message printed when the check fails: Although this error should only appear if the supplied trajectory file was hacked to include KIND information, it is not intuitive that the information contained in the topology file and trajectory file, while being identical, are treated differently. |
@Anyborr , How would you re-phrase / extend the message to avoid the confusion? |
@oschuett Maybe something like: errmsg = "Atomic configuration from trajectory file does not match the reference configuration: Check atom " It still feels a bit vague as I don't think its clear that the KIND information is read from the topology file and compared with the elements in the trajectory, but maybe that information should be included in the |
In motion/integrator.F (line 1582 of the current master branch) there is a check to make sure the elements in the trajectory snapshots are consistent:
IF (element_symbol /= element_symbol_ref0) THEN
errmsg = "Atomic configuration from trajectory file does not match the reference configuration: Check atom "// &
TRIM(ADJUSTL(cp_to_string(i)))//" of step "//TRIM(ADJUSTL(cp_to_string(trj_itimes)))
CPABORT(errmsg)
END IF
If kinds in the .xyz reference trajectory are specified with aliases (e.g. O1 ) the variable 'element_symbol' will be 'O1' while 'element_symbol_ref0' will have the value of 'O', thus failing the check. Currently this completely hinders the use of element aliases with ensemble REFTRAJ.
The text was updated successfully, but these errors were encountered: