Issue with EPS_DEFAULT Sensitivity: Why Does 1.0E-12 Cause CPASSERT Failure?

124 views
Skip to first unread message

yis...@163.com

unread,
Dec 30, 2025, 11:43:29 AM12/30/25
to cp2k

Dear CP2K developers,

I would like to report a potential issue regarding the keyword EPS_DEFAULT. During my tests, I found that its value affects the calculation in the following way:

  • With EPS_DEFAULT = 1.0E-12, the program fails with a “CPASSERT failed” error.

  • With EPS_DEFAULT = 1.0E-11 or 1.0E-13, the calculation proceeds normally into the iteration process.

I have attached the input and output files for each test case. The naming convention is as follows:

  • 1.0E-12_*: corresponds to EPS_DEFAULT = 1.0E-12

  • 1.0E-11_*: corresponds to EPS_DEFAULT = 1.0E-11

  • 1.0E-13_*: corresponds to EPS_DEFAULT = 1.0E-13

Thank you for your attention and for all your work on CP2K. I look forward to your feedback.

1.0E-13_cp2k.err
1.0E-12_cp2k.err
1.0E-13_cp2k.inp
1.0E-12_cp2k.inp
1.0E-12_cp2k.out
1.0E-11_cp2k.inp
1.0E-11_cp2k.out
1.0E-11_cp2k.err
1.0E-13_cp2k.out

Frederick Stein

unread,
Jan 5, 2026, 4:56:03 AMJan 5
to cp2k
Hi,
This could be a bug. Did you compile CP2K yourself? If yes, with which compiler?
Best,
Frederick

yis...@163.com

unread,
Jan 6, 2026, 8:59:43 AMJan 6
to cp2k
I am using a supercomputer provided by a commercial supercomputing center. The CP2K software I am using was compiled by the center's staff. Is there anything I can help with?

Frederick Stein

unread,
Jan 6, 2026, 9:18:39 AMJan 6
to cp2k
If you use the module system, can you provide the result of `module ls` (or similar command to display the currently loaded modules). It would be great to have some more information on how CP2K was built. The behavior you observed appears as a bug in the code or the compiler/libraries.

yis...@163.com

unread,
Jan 6, 2026, 10:37:15 AMJan 6
to cp2k
Enter "module ls" in the command window, and its output is shown in the following figure.

module Is.png

Frederick Stein

unread,
Jan 6, 2026, 11:15:53 AMJan 6
to cp2k
Ok, serife-less fonts are not a good choice here... Please try `module list` after you have loaded all modules to run CP2K.

yis...@163.com

unread,
Jan 6, 2026, 8:46:21 PMJan 6
to cp2k
Regarding this issue, I've provided feedback to the administrators of the supercomputing center. The SCC admin has now shown me this diagram—I'm not sure if it fully addresses your question.微信图片_20260107093904_62_790.png

yis...@163.com

unread,
Jan 6, 2026, 9:54:00 PMJan 6
to cp2k
compiled toolchain using `--with-cmake=system --with-gcc=install --with-openmpi=install --with-sirius=no`. The host OS is Rocky Linux 8.10. 

Frederick Stein

unread,
Jan 7, 2026, 4:34:37 AMJan 7
to cp2k
Thank you, I will try to reproduce it.

Frederick Stein

unread,
Jan 8, 2026, 3:05:46 PMJan 8
to cp2k
I can reproduce it. I will investigate it further.

yis...@163.com

unread,
Jan 10, 2026, 6:12:55 AMJan 10
to cp2k
thank you very much

Frederick Stein

unread,
Jan 12, 2026, 4:52:29 AMJan 12
to cp2k
I can reproduce it with the same number of MPI ranks but a lower number resolves it. I guess you hit a rare corner case of the implementation. I still do not understand why it happens.

yis...@163.com

unread,
Jan 12, 2026, 9:57:30 AMJan 12
to cp2k
Thank you for your outstanding work. I was able to run CP2K smoothly with EPS_DEFAULT = 1.0E-13 as well. I'm reporting this bug in the hope that CP2K will become even more user-friendly.

Frederick Stein

unread,
Jan 12, 2026, 10:17:32 AMJan 12
to cp2k
I have opened an issue on Github.

Frederick Stein

unread,
Jan 23, 2026, 9:35:57 AM (4 days ago) Jan 23
to cp2k
Hi,
I found the culprit and will merge a bugfix today. It indeed seems to be a corner case of the Fortran standard/GCC compiler implementation.
Best,
Frederick

yis...@163.com

unread,
Jan 23, 2026, 10:23:23 AM (4 days ago) Jan 23
to cp2k

Thank you
Reply all
Reply to author
Forward
0 new messages