Skip to content
  • Home
  • Recent
Collapse
Brand Logo
CRYSTAL23
Latest v1.0.1
Tutorials Try the Demo Get a License
Tutorials Try the Demo Get a License Instagram
  1. Home
  2. Technical Aspects
  3. Bug Reports
  4. SCF fails spinlock with POB-DZVP-REV2

SCF fails spinlock with POB-DZVP-REV2

Scheduled Pinned Locked Moved Bug Reports
10 Posts 5 Posters 511 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jquertinundefined Offline
    jquertinundefined Offline
    jquertin
    wrote on last edited by jquertin
    #1

    Hi,

    I'm currently running some molecular calculation as tests before going to periodic one of porphyrin with Co2+.
    I'm using spin DFT with a spinloc2 1 -5 setting (with HSEsol).
    With POB-DZVP, the calculation finishes successfully while with rev2 it fails after the 4th SCF cycle (sometimes the 3rd) with the good old "NaN at SCF".
    I'm not sure what to try beside giving it more memory (which gives the same results) as those are my first calculation with metals.

    I'm not sure if it's even a bug but since POB-DZVP works and not POB-DZVP-REV2, I figure that there's something that I cannot control at play.

    Best,
    Jean

    PS: I also tried with FMIXING 60, spinlock instead of spinloc2, tighter tolinteg but got the same problem.

    por_co-opt-pob_dzvp_rev2.d12 por_co-opt-pob_dzvp_rev2.out

    1 Reply Last reply
    0
    • Aleksundefined Online
      Aleksundefined Online
      Aleks Expert
      wrote on last edited by
      #2

      Hi,

      Have you tried running a calculation where you specify the full basis set via the general route? This way one could rule out whether the internally stored basis set has some intrinsic error associated with it.

      You also have DIIS turned on, which can cause issues with spin locking and cause instabilities. You can try switching it off (NODIIS) or alternatively remove spin lock, set up the spins at the beginning (ATOMSPIN) and monitor whether the DIIS is keeping the right solution.

      Still might be a bug, but worth ruling out the simpler possibilities.

      Hope it helps.

      Cheers,
      Aleks

      Aleksandar Živković, Scientific Assistant
      Department of Earth and Environmental Sciences, LMU Munich, Germany
      Crystal enthusiast

      jquertinundefined 1 Reply Last reply
      1
      • jquertinundefined Offline
        jquertinundefined Offline
        jquertin
        replied to Aleks on last edited by
        #3

        Aleks Thanks for the suggestions. I'll try them and keep the post updated.

        1 Reply Last reply
        0
        • jquertinundefined Offline
          jquertinundefined Offline
          jquertin
          wrote on last edited by
          #4

          So, in short, everything that I tried (ATOMSPIN, NODIIS, explicitly give the basis set and combining all three) failed. Either with a similar error ("NaN" during SCF) or SIGSEGV ("forrtl: severe (174): SIGSEGV, segmentation fault occurred").

          1 Reply Last reply
          0
          • GiacomoAmbrogioundefined Offline
            GiacomoAmbrogioundefined Offline
            GiacomoAmbrogio Developer
            wrote on last edited by
            #5

            Hi jquertin,
            As Aleks correctly pointed out, it’s better not to use DIIS (which is active by default) when using SPINLOCK.
            A good way to combine the two is like this:

            SPINLOCK  
            1  
            -2  
            THREDIIS  
            0.005
            

            This way, DIIS is only activated when SPINLOCK is turned off.

            However, I tried running your input, and it’s likely that this is actually a bug. Unfortunately, I don’t have a better solution at the moment other than changing the functional.

            Giacomo Ambrogio, PhD Student
            Department of Chemistry - University of Torino
            V. Giuria 5, 10125 Torino (Italy)

            1 Reply Last reply
            2
            • jquertinundefined Offline
              jquertinundefined Offline
              jquertin
              wrote on last edited by
              #6

              Hi again,
              I'm now running into the same issue with PBESOLXC in a periodic calculation (3 Co in the assymetric unit) that uses:
              nodiis
              maxcycle
              750
              fmixing
              90
              spinlock
              3
              -3

              Best,
              Jean

              1 Reply Last reply
              0
              • ldonaundefined Offline
                ldonaundefined Offline
                ldona Developer
                wrote on last edited by
                #7

                Dear Jean,
                could you please send us the input file for this periodic calculation.

                Best regards,

                Lorenzo

                1 Reply Last reply
                0
                • jquertinundefined Offline
                  jquertinundefined Offline
                  jquertin
                  wrote on last edited by jquertin
                  #8

                  Hi,
                  Yes, of course. Sorry for not including them earlier.
                  Best,
                  Jean
                  metcofs-2d-pc-co-prist-ils35-opt-pob_dzvp_rev2.d12
                  metcofs-2d-pc-co-prist-ils35-opt-pob_dzvp_rev2.out

                  1 Reply Last reply
                  0
                  • jquertinundefined Offline
                    jquertinundefined Offline
                    jquertin
                    wrote last edited by jquertin
                    #9

                    Hi,
                    I just noticed that the manual is a bit unclear about the difference in the input between SPINLOCK and SPINLOC2.
                    In the case of SPINLOCK, the manual clearly explain that the NSPIN value is the difference in number of alpha and beta electrons.
                    For SPINLOC2, the text only refers to the spin while the table gives the same definition for SPIN as for NSPIN (in SPINLOCK). Furthermore, in the calculation, if using SPINLOC2 with 6 or 6.0 as the spin (as defined in the table), crystal defaults to SPINLOCK. (I'm now looking at high spin Ni2+ with 3 nickel per unit cell.)
                    This sentence in SPINLOC2: "Additionally, it is possible to set the value of SPIN to a real number." is what intrigued me.

                    In short, if I define SPINLOC2 SPIN as 3 (1/2 * 6) or 3.0, crystal defaults to SPINLOCK with NSPIN 3 which is actually half of what I want.
                    For debugging, I tried SPINLOC2 SPIN 4.5 and it actually use SPINLOC2 as requested.

                    Thanks,
                    Jean

                    1 Reply Last reply
                    0
                    • aerbaundefined Offline
                      aerbaundefined Offline
                      aerba Developer
                      wrote last edited by
                      #10

                      Hi,

                      jquertin said in SCF fails spinlock with POB-DZVP-REV2:

                      In the case of SPINLOCK, the manual clearly explain that the NSPIN value is the difference in number of alpha and beta electrons. For SPINLOC2, the text only refers to the spin while the table gives the same definition for SPIN as for NSPIN (in SPINLOCK).

                      The argument SPIN of SPINLOC2 still represents a number of electrons, as in SPINLOCK.

                      jquertin said in SCF fails spinlock with POB-DZVP-REV2:

                      Furthermore, in the calculation, if using SPINLOC2 with 6 or 6.0 as the spin (as defined in the table), crystal defaults to SPINLOCK.

                      That's right. SPINLOC2 requires a non integer argument. For integer arguments it reduces to SPINLOCK.

                      jquertin said in SCF fails spinlock with POB-DZVP-REV2:

                      In short, if I define SPINLOC2 SPIN as 3 (1/2 * 6) or 3.0, crystal defaults to SPINLOCK with NSPIN 3 which is actually half of what I want.

                      In both SPINLOCK and SPINLOC2, the argument is meant as a number of electrons. Thus, if you have 6 extra up electrons with respect to down electrons, the input value should be 6, not 3. For integer values, SPINLOC2 is of no use.

                      Hope this clarifies things a little,

                      Alessandro Erba
                      Professor of Physical Chemistry
                      Department of Chemistry, University of Torino
                      [email protected]

                      1 Reply Last reply
                      1

                      Powered by Crystal Solutions
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Home
                      • Recent