dpgen icon indicating copy to clipboard operation
dpgen copied to clipboard

[BUG]Function make_abacus_scf_stru() has no magnetic moment determination.

Open metaliuyong opened this issue 1 year ago • 1 comments

Bug summary

The line 270 of code dpgen/generator/lib/abacus_scf.py sets the magnetic moment line lin the STRU file to 0 in any case, even if the configuration set in ”sys_configs“ to generate md trajectory at 01.model_devi stage has nonzero magnetic moment. This will result in first-principle calculations at the 02.fp stage without spin polarization turned on or without a correct initial magnetic moment. It is hoped that developers can add a determination of the magnetic moment to generate STRU files.

DP-GEN Version

0.12.0

Platform, Python Version, Remote Platform, etc

No response

Input Files, Running Commands, Error Log, etc.

dpgen_abacus_bug

Steps to Reproduce

dpgen run run_param.json machine.json

Further Information, Files, and Links

No response

metaliuyong avatar Mar 19 '24 05:03 metaliuyong

I meet the same situation and in my opinion, this is not a bug, magnetic should not be consindered in this.

KK33999 avatar Apr 14 '24 06:04 KK33999