Skip to content
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

RODFT with smear #616

Open
edoapra opened this issue May 16, 2022 · 7 comments
Open

RODFT with smear #616

edoapra opened this issue May 16, 2022 · 7 comments
Labels

Comments

@edoapra
Copy link
Collaborator

edoapra commented May 16, 2022

Describe the bug
If the keyword smear is used with RODFT, occupation numbers in the Molecular Orbital analysis are non-sensical.
Energy values seem to make sense.

Attach log files

 Vector    1  Occ=0.000000D+00  E=-1.036655D+01
              MO Center= -3.9D-18, -2.3D-17,  7.4D-19, r^2= 2.8D-02
   Bfn.  Coefficient  Atom+Function         Bfn.  Coefficient  Atom+Function
  ----- ------------  ---------------      ----- ------------  ---------------
     1      0.995386  1 C  s

 Vector    2  Occ=0.000000D+00  E=-5.458552D-01
              MO Center= -1.6D-16, -2.8D-16,  9.4D-17, r^2= 8.3D-01
   Bfn.  Coefficient  Atom+Function         Bfn.  Coefficient  Atom+Function
  ----- ------------  ---------------      ----- ------------  ---------------
     6      0.592905  1 C  s                  2      0.480770  1 C  s
     1     -0.231387  1 C  s

 Vector    3  Occ=0.000000D+00  E=-2.001641D-01
              MO Center=  1.3D-18, -4.5D-20, -9.2D-18, r^2= 1.0D+00
   Bfn.  Coefficient  Atom+Function         Bfn.  Coefficient  Atom+Function
  ----- ------------  ---------------      ----- ------------  ---------------
     5      0.623577  1 C  pz                 9      0.492665  1 C  pz

 Vector    4  Occ=5.643769D-01  E=-1.207348D-01
              MO Center=  3.5D-17, -3.5D-19,  4.8D-18, r^2= 1.1D+00

To Reproduce

  1. Steps to reproduce the behavior:
    Run this C atom input file
geometry
  C   0.0 0.0 0.0
end

basis
  * library 6-31G
end

dft
  xc pbe0
  smear
  rodft
end
task dft energy

Expected behavior
Print occupation number in the range 0 to 2, with core orbital having a value of 2.

@edoapra
Copy link
Collaborator Author

edoapra commented May 16, 2022

edoapra added a commit that referenced this issue May 16, 2022
@edoapra
Copy link
Collaborator Author

edoapra commented May 16, 2022

On closer inspection, SMEAR is not correctly interfaced with CG/RODFT.
Commit #616 stops CG when the keyword SMEAR is used

@ice-hanbin
Copy link

But I don't think this should happen in principle, so how can I fix the bug?

@edoapra
Copy link
Collaborator Author

edoapra commented May 17, 2022

Your run is a restart run, therefore the smear keyword was kept from the first run.
Please add the start keyword at the beginning of the input file.
https://nwchemgit.github.io/Start_Restart.html

    input           = c.inp
    prefix          = c.
    data base       = ./c.db
    status          = restart
    nproc           =        4
    time left       =     -1s

Modified input file

start c_atom_rodft

geometry
  C   0.0 0.0 0.0
end

basis
  * library 6-31G
end

dft
  xc pbe0
 # smear
  rodft
end
task dft energy

@ice-hanbin
Copy link

ice-hanbin commented May 18, 2022

Sorry about that, I have found this, but the problem is still here, SMEAR is not correctly interfaced with CG/RODFT, so I'd like to ask if there are some ways to fix this bug? Thanks a lot!

@edoapra edoapra added the bug label May 18, 2022
@edoapra
Copy link
Collaborator Author

edoapra commented May 18, 2022

Yes, the bug could be fixed. However, I am not sure any NWChem developer is going to act on it anytime soon.

@edoapra
Copy link
Collaborator Author

edoapra commented May 18, 2022

The FON keyword is also affected by the fact that the CGMIN module is not ready to use non integer occupations number
a1d5ac2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants