Skip to content

Request: auto option for init_wfc #4565

@QuantumMisaka

Description

@QuantumMisaka

Waiting for init_wfc auto option to solve the bug below

Describe the bug

After #3140 , We can use init_wfc file and init_chg file when the file is not exist, ABACUS will skip the reading process and do calculation. But in the 3.7.0 version, the wavefunction part have problem and cannot skip properly:

 Read in wave functions files: 8
Can't find the wave function file: WFC_NAO_K1.txt
 
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                         NOTICE                           
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
 Failed to read in wavefunction.
 CHECK IN FILE : OUT.ABACUS/warning.log
 
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                         NOTICE                           
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
TIME STATISTICS

while the charge part maintained.

 START CHARGE      : file
 WARNING: Failed to read charge density from file. Possible reasons: 
 - not found: The default directory of SPIN1_CHG.cube is OUT.suffix, 
or you must set read_file_dir to a specific directory. 
 - parameter mismatch: check the previous warning.
 Use atomic initialization instead.
 DONE(13.1617    SEC) : INIT SCF
 * * * * * *
 << Start SCF iteration.

Expected behavior

The init_wfc file function should work like init_chg file , when the wavefunction file not exist, the init part should skip back to atomic.

To Reproduce

Run with init_wfc file

No response

Environment

ABACUS 3.7.0 Commit: a339356 (Thu Jun 27 16:40:42 2024 +0800)
installed by Intel-toolchain
Hardware: intel-8358

Metadata

Metadata

Assignees

No one assigned

    Labels

    Input&OutputSuitable for coders without knowing too many DFT detailsRefactorRefactor ABACUS codes

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions