ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deltaspin_init.h File Reference

Solver-independent initialization of the spin-constrained state. More...

#include "deltaspin_state.h"
Include dependency graph for deltaspin_init.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  spinconstrain::ScInitParams

Namespaces

namespace  spinconstrain

Functions

void spinconstrain::init_sc_state (const ScInitParams &params, const UnitCell &ucell, ScState &state)
 Populate ScState from UnitCell and input parameters.

Detailed Description

Solver-independent initialization of the spin-constrained state.

Purpose
Bridges UnitCell/STRU parsing results (target moments, initial lambda, constraint flags) and INPUT parameters into ScState. Kept separate from SpinConstrain so that the data initialization logic has no dependency on solver-side objects (Hamiltonian, wavefunctions, k-points).