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. CRYSTAL
  3. Vibrational Spectroscopies: IR, Raman, INS
  4. Error in RESTART of FREQCALC calculation

Error in RESTART of FREQCALC calculation

Scheduled Pinned Locked Moved Vibrational Spectroscopies: IR, Raman, INS
13 Posts 3 Posters 146 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.
  • aerbaundefined Offline
    aerbaundefined Offline
    aerba Developer
    wrote last edited by aerba
    #2

    Hi,

    I am quite familiar with that error message myself: it pops up when the fort.9 unit provided upon the restart is the wrong one (i.e. does not match with the current calculation).

    Let me make a general comment on how to best approach these frequency+intensity calculations with CRYSTAL based on my experience.

    I noticed that you tend to use the PREOPTGEOM option within FREQCALC, and to compute infrared and Raman intensities, all in one shot. Now, this is a very nice feature of CRYSTAL that allows you to run a single job where everything is fully automated: the structure gets optimized, the numerical Hessian computed and diagonalized, and Born and Raman tensors computed. Not many programs can do that, to the best of my knowledge. At the same time, while this is very convenient if you can indeed run everything in a single job, it complicates things if you then need to do a restart from a previous incomplete calculation.

    If you envisage that this could be the case (maybe because of a wall clock limit on the cluster) then it is preferable (to put it mildly) to do things step by step:

    • You first run a geometry optimization with something like:
    [initial geometry]
    
    OPTGEOM
    END
    
    • You prepare a new input file where you insert the optimized geometry from the previous run as a starting point, and perform a frequency calculation, with something like:
    [optimized geometry]
    
    FREQCALC
    END
    
    • If this calculation stops, you can now restart it easily with:
    [optimized geometry]
    
    FREQCALC
    RESTART
    END
    

    by providing the required restart files (FREQINFO.DAT and fort.13 from the first frequency calculation, and fort.9 from the geometry optimization, to be renamed fort.20 in the new scratch folder).

    • Once the restart is done and the frequency calculation is complete, you can compute the intensities, with something like:
    [optimized geometry]
    
    FREQCALC
    RESTART
    INTENS
    INTRAMAN
    INTCPHF
    ENDCPHF
    END
    

    Personally, I always do things separately, running first the geometry optimization, then the Hessian (i.e. harmonic frequency) calculation, then the intensities through CPHF/KS in three separate jobs.

    Hope this clarifies things a little,

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

    1 Reply Last reply
    4
    • job314undefined Offline
      job314undefined Offline
      job314
      wrote last edited by
      #3

      It is tough, Alessandro. Restarting frequency calculations (or just running them) is unpredictable. It runs normally, then if it stops out of time and is restarted, many times it does not run for one reason or the other - see a random restart abort below. It is tough, perhaps I will learn something by doing them but I now normally just start form scratch

      DIIS TEST: 0.85073E-04 AT CPHF CYCLE 9 - DIIS ACTIVE - HISTORY: 9 CYCLES
      CYCLE 9 ALPHA 278.474328 EPSILON 2.093136 DELTA 4.8487E-04
      forrtl: severe (256): unformatted I/O to unit open for formatted transfers, unit 85, file /dev/null
      Image PC Routine Line Source
      Pcrystal 0000000007374206 Unknown Unknown Unknown
      Pcrystal 0000000001BA179E Unknown Unknown Unknown
      Pcrystal 0000000000A8038B Unknown Unknown Unknown

      1 Reply Last reply
      0
      • job314undefined Offline
        job314undefined Offline
        job314
        wrote last edited by
        #4

        Alessandro, to prove the point how difficult these restarts are, I copied FREQINFO.DAT from the first frequency calculation, fort.13 unit, and fort.9, renamed fort.20 in the new scratch folder, grabbed the last optc file from the converged geometry optimization. Tried the restart with GUESSP since I am getting conducting state otherwise. Right away I have problems where my old and new vectors via GUESSP are different. why?

        INFORMATION FROM INTEGRAL EVALUATION

        RESTART FROM A PREVIOUS RUN FOCK MATRIX - DEP ACTIVE
        NUMBER OF COUPLE SETS (NEW, OLD, FOUND): 50745 15118 15039
        NUMBER OF IRREDUCIBLE G VECTORS : 71990 64543 63141

        1 Reply Last reply
        0
        • job314undefined Offline
          job314undefined Offline
          job314
          wrote last edited by
          #5

          Alessando, can I send you the files above so you can please try a restart? My restarts end up being conducting state and do not converge

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

            Yes, please, send me all the files.

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

            1 Reply Last reply
            0
            • aerbaundefined Offline
              aerbaundefined Offline
              aerba Developer
              replied to job314 last edited by
              #7

              job314 I am running some tests now. I reproduced your "possibly conducting state" problem. Let me try a couple of things.

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

              1 Reply Last reply
              0
              • job314undefined Offline
                job314undefined Offline
                job314
                wrote last edited by
                #8

                Whew... At least you got it... It is uncanny how a normally job, aborted, can't be restarted since it can't converge SCF all of a sudden...

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

                  Hi,

                  I have run some calculations on your case following my step-by step recipe (as described at https://forum.crystalsolutions.eu/post/339, which I have now edited to include the intensity step), and the restart now works just fine (i.e. without the annoying "possibly conducting state", and with a nice convergence of the further SCFs upon restart).

                  This is what I did:

                  • I took the optimized geometry from your original output file and I created a new input file for a single-point calculation. I ran it and obtained the wavefunction external file (i.e. fort.9 unit);

                  • I prepared an input file to run the harmonic frequency calculation, I ran it and I killed it in the middle of the construction of the Hessian. From this incomplete frequency calculation, I obtained the FREQINFO.DAT file and the external unit with the density matrix, i.e. fort.13 unit;

                  • I prepared an input file to restart the frequency calculation and provided the FREQINFO.DAT and fort.13 files from the previous step and the fort.9 (renamed as fort.20) from the first step, and ran it. The calculation of the Hessian restarted correctly, with the new SCFs converging nicely (see the attached SCFOUT.LOG file). I then stopped the calculation not to use too much compute power on my cluster.

                  If you follow this step-by-step process you'll be able to safely restart your frequency calculations.

                  Hope this helps,

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

                  job314undefined 1 Reply Last reply
                  3
                  • PeterRemotoundefined Offline
                    PeterRemotoundefined Offline
                    PeterRemoto
                    wrote last edited by
                    #10

                    Hey, just to add onto this, I'm getting a similar error where the SCF won't wouldn't converge upon restart - but only occurs with certain structures.
                    When I do with the restart with CRYSTAL17, it works perfectly - it's odd that it only happens on restart because when I lower the criteria, it doesn't need a restart and completes the calculation - but I can't keep lowering the tolerance criteria when I encounter this issue.

                    CRYSTAL17 succesful restart:
                    BLACTO_PBE_D3_AhTZVP_FREQ_4_4-53910034 - CRYSTAL17 success..out
                    CRYSTAL23 unsucessful restart + SCFOUT:
                    BLACTO_PBE_D3_AhTZVP_FREQ_4_4-53437836.out
                    SCFOUT.LOG

                    Any ideas around this?

                    I've also included a plot of the DETOT from the SCFOUT.LOG files - where the successful one was from CRYSTAL17

                    detot_vs_cycle_CRYSTAL17_SUCCESS_CYC0tomax.png

                    The then rest from CRYSTAL23
                    detot_vs_cycle_CRYSTAL23_FAIL_CYC0tomax.png detot_vs_cycle_CRYSTAL23_FAIL_CYC300tomax.png detot_vs_cycle_CRYSTAL23_FAIL_CYC1000tomax.PNG

                    Our HPC platform provider said it was not an issue on their end and advised to seek support from the CRYSTAL team. Just to add on, our HPC platform provider also said I can't use the CRYSTAL17 anymore because they can't build the architecture on their new upgrade which, honestly, I don't really understand why.

                    Happy to discuss,
                    Peter

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

                      Hi,

                      By the looks of it, it may be due to some mismatch in the restart units. I am happy to run some tests. Could you share your input files for this case?

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

                      1 Reply Last reply
                      0
                      • PeterRemotoundefined Offline
                        PeterRemotoundefined Offline
                        PeterRemoto
                        wrote last edited by
                        #12

                        Sure, I've uploaded the files input files in this link because it exceeded the file size limit to upload them in this comment:
                        https://otagouni-my.sharepoint.com/:f:/g/personal/rempe782_student_otago_ac_nz/EmtG3VsEJYJArghuK_IF1x0BvJNBiYsE1mrbQELFWOE1-A?e=NhXhQs

                        Used the same inputs (.d12, fort.9, fort.13, fort.20, FREQINFO.DAT) for to do the frequency calculation restarts for CRYSTAL17 and 23

                        Thanks heaps

                        1 Reply Last reply
                        0
                        • job314undefined Offline
                          job314undefined Offline
                          job314
                          replied to aerba last edited by
                          #13

                          aerba said in Error in RESTART of FREQCALC calculation:

                          Hi,

                          I have run some calculations on your case following my step-by step recipe (as described at https://forum.crystalsolutions.eu/post/339, which I have now edited to include the intensity step), and the restart now works just fine (i.e. without the annoying "possibly conducting state", and with a nice convergence of the further SCFs upon restart).

                          This is what I did:

                          • I took the optimized geometry from your original output file and I created a new input file for a single-point calculation. I ran it and obtained the wavefunction external file (i.e. fort.9 unit);

                          • I prepared an input file to run the harmonic frequency calculation, I ran it and I killed it in the middle of the construction of the Hessian. From this incomplete frequency calculation, I obtained the FREQINFO.DAT file and the external unit with the density matrix, i.e. fort.13 unit;

                          • I prepared an input file to restart the frequency calculation and provided the FREQINFO.DAT and fort.13 files from the previous step and the fort.9 (renamed as fort.20) from the first step, and ran it. The calculation of the Hessian restarted correctly, with the new SCFs converging nicely (see the attached SCFOUT.LOG file). I then stopped the calculation not to use too much compute power on my cluster.

                          If you follow this step-by-step process you'll be able to safely restart your frequency calculations.

                          Hope this helps,

                          thank you and I am trying to do that

                          1 Reply Last reply
                          0

                          Powered by Crystal Solutions
                          • Login

                          • Don't have an account? Register

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