Skip to content

Commit 93fd786

Browse files
committed
fix 2
1 parent 1af42b8 commit 93fd786

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/source_lcao/module_deltaspin/init_sc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ void spinconstrain::SpinConstrain<TK>::init_sc(double sc_thr_in,
3434
this->set_decay_grad();
3535
if(ParaV_in != nullptr) this->set_ParaV(ParaV_in);
3636
this->set_solver_parameters(kv_in, p_hamilt_in, psi_in, pelec_in);
37+
#ifdef __LCAO
3738
this->dm_ = dm_in; // mohan add 2025-11-03
39+
#endif
3840
}
3941

4042
template class spinconstrain::SpinConstrain<std::complex<double>>;

0 commit comments

Comments
 (0)