Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

CPASSERT qs initialization

55 views
Skip to first unread message

Anirudh Natarajan

unread,
Apr 20, 2025, 7:33:43 AMApr 20
to cp2k
 *******************************************************************************
 *   ___                                                                       *
 *  /   \                                                                      *
 * [ABORT]                                                                     *
 *  \___/                             CPASSERT failed                          *
 *    |                                                                        *
 *  O/|                                                                        *
 * /| |                                                                        *
 * / \                                                   qs_environment.F:1556 *
 *******************************************************************************

Can someone help me point out at the exact nature of this error? This happens to be a very repetitive error for me inspite of changing orbitals, smearing, kpoints and so on.


cp2k_input.inp

Jürg Hutter

unread,
Apr 22, 2025, 4:08:37 AMApr 22
to cp...@googlegroups.com
Hi

Did you get additional information in the output? There should be some hint.
In any case it will be something related to number of electrons and spin multiplicity.

regards
JH

________________________________________
From: cp...@googlegroups.com <cp...@googlegroups.com> on behalf of Anirudh Natarajan <anirudhna...@gmail.com>
Sent: Saturday, April 19, 2025 10:18 PM
To: cp2k
Subject: [CP2K:21394] CPASSERT qs initialization
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com<mailto:cp2k+uns...@googlegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/91ad7821-8d19-430d-9bcd-a55c91ceb772n%40googlegroups.com<https://groups.google.com/d/msgid/cp2k/91ad7821-8d19-430d-9bcd-a55c91ceb772n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Anirudh Natarajan

unread,
Apr 22, 2025, 5:45:33 AMApr 22
to cp...@googlegroups.com
No, I am not getting any additional information in the output file. I am unable to run spin polarized calculations in spite of changing different multiplicity values. Non Spin polarized calculations work more or less properly. 

To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/ZR0P278MB075957A4D0B0AA9CAC8AD0069FBB2%40ZR0P278MB0759.CHEP278.PROD.OUTLOOK.COM.

Jürg Hutter

unread,
Apr 22, 2025, 5:48:33 AMApr 22
to cp...@googlegroups.com
This is where it fails (assuming Version 2025)

! The simplist spin distribution is written here. Special cases will
! need additional user input
IF (MODULO(nelectron + multiplicity - 1, 2) /= 0) THEN
CPABORT("LSD: try to use a different multiplicity")
END IF

regards
JH

________________________________________
From: cp...@googlegroups.com <cp...@googlegroups.com> on behalf of Anirudh Natarajan <anirudhna...@gmail.com>
Sent: Tuesday, April 22, 2025 11:44 AM
To: cp...@googlegroups.com
Subject: Re: [CP2K:21401] CPASSERT qs initialization

No, I am not getting any additional information in the output file. I am unable to run spin polarized calculations in spite of changing different multiplicity values. Non Spin polarized calculations work more or less properly.

On Tue, Apr 22, 2025 at 10:08 AM Jürg Hutter <hut...@chem.uzh.ch<mailto:hut...@chem.uzh.ch>> wrote:
Hi

Did you get additional information in the output? There should be some hint.
In any case it will be something related to number of electrons and spin multiplicity.

regards
JH

________________________________________
From: cp...@googlegroups.com<mailto:cp...@googlegroups.com> <cp...@googlegroups.com<mailto:cp...@googlegroups.com>> on behalf of Anirudh Natarajan <anirudhna...@gmail.com<mailto:anirudhna...@gmail.com>>
Sent: Saturday, April 19, 2025 10:18 PM
To: cp2k
Subject: [CP2K:21394] CPASSERT qs initialization

*******************************************************************************
* ___ *
* / \ *
* [ABORT] *
* \___/ CPASSERT failed *
* | *
* O/| *
* /| | *
* / \ qs_environment.F:1556 *
*******************************************************************************

Can someone help me point out at the exact nature of this error? This happens to be a very repetitive error for me inspite of changing orbitals, smearing, kpoints and so on.



--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com<mailto:cp2k%2Bunsu...@googlegroups.com><mailto:cp2k+uns...@googlegroups.com<mailto:cp2k%2Bunsu...@googlegroups.com>>.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com<mailto:cp2k%2Bunsu...@googlegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/ZR0P278MB075957A4D0B0AA9CAC8AD0069FBB2%40ZR0P278MB0759.CHEP278.PROD.OUTLOOK.COM.

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com<mailto:cp2k+uns...@googlegroups.com>.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/CALOrjmDXDONatUFD4O3D9Mwbq%3Dh4Ly5Ocv7_UDMLNp0peVv%2BGg%40mail.gmail.com<https://groups.google.com/d/msgid/cp2k/CALOrjmDXDONatUFD4O3D9Mwbq%3Dh4Ly5Ocv7_UDMLNp0peVv%2BGg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Krack Matthias

unread,
Apr 22, 2025, 6:41:12 AMApr 22
to cp...@googlegroups.com

Hi

 

I cannot reproduce the error with the provided input. I get the error that the distance between the atoms 26 and 19 is zero.

 

Best

 

M.

 

From: cp...@googlegroups.com <cp...@googlegroups.com> on behalf of Anirudh Natarajan <anirudhna...@gmail.com>
Date: Sunday, 20 April 2025 at 13:34
To: cp2k <cp...@googlegroups.com>
Subject: [CP2K:21394] CPASSERT qs initialization

--
You received this message because you are subscribed to the Google Groups "cp2k" group.

To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cp2k/91ad7821-8d19-430d-9bcd-a55c91ceb772n%40googlegroups.com.

Anirudh Natarajan

unread,
Apr 23, 2025, 12:33:41 AMApr 23
to cp2k
Thanks for the responses, I have fixed the geometry issue.
I want to fix the spin and do not want to relax it, based on the multiplicity i am giving it in the beginning.
So do the keywords FIXED_MAGNETIC_MOMENT and  RELAX_MULTIPLICITY  be the reason behind the error?

I am using RELAX_MULTIPLICITY -1 here. Could it be the problem?

Krack Matthias

unread,
Apr 23, 2025, 3:59:56 AMApr 23
to cp...@googlegroups.com

The default for RELAX_MULTIPLICITY is zero and very small positive values are used typically to promote spin flips. A large value of -1 (Hartree) doesn’t seem to make much sense.

 

Anirudh Natarajan

unread,
Apr 23, 2025, 4:21:03 AMApr 23
to cp...@googlegroups.com
Thanks for the clarification, if i want to work with a fixed spin state from the beginning and do not want to relax the spin/flip spins, what should i do? In addition to the multiplicity, should I just give the fixed magnetic moment, and give RELAX_MULTIPLICITY as 0?


Krack Matthias

unread,
Apr 23, 2025, 4:26:18 AMApr 23
to cp...@googlegroups.com

Just drop or comment the keyword RELAX_MULTIPLICITY and specify the desired/expected multiplicity with keyword MULTIPLICITY.

The FIXED_MAGNETIC_MOMENT keyword has only an effect when smearing is activated which is not the case by default.

 

Anirudh Natarajan

unread,
May 6, 2025, 11:45:26 AMMay 6
to cp2k

Dear CP2K community,

Greetings, and thank you once again for your responses.

I have tried adjusting the input file and consulted the input manuals, but I am still encountering the same error. Am I possibly overlooking something obvious? I apologize for the repeated questions and truly appreciate your patience and assistance.

Any further guidance would be greatly appreciated.
Thank you

Anirudh

results.log
NiOOH.inp
Reply all
Reply to author
Forward
0 new messages