@@ -34,7 +34,7 @@ double SpinConstrain<TK>::cal_escon()
3434}
3535
3636template <typename TK>
37- double SpinConstrain<TK>::get_escon()
37+ double SpinConstrain<TK>::get_escon() const
3838{
3939 return this ->escon_ ;
4040}
@@ -67,7 +67,7 @@ void SpinConstrain<TK>::set_nspin(int nspin_in)
6767
6868// / get nspin
6969template <typename TK>
70- int SpinConstrain<TK>::get_nspin()
70+ int SpinConstrain<TK>::get_nspin() const
7171{
7272 return this ->nspin_ ;
7373}
@@ -439,35 +439,35 @@ void SpinConstrain<TK>::set_input_parameters(double sc_thr_in,
439439
440440// / get sc_thr
441441template <typename TK>
442- double SpinConstrain<TK>::get_sc_thr()
442+ double SpinConstrain<TK>::get_sc_thr() const
443443{
444444 return this ->sc_thr_ ;
445445}
446446
447447// / get nsc
448448template <typename TK>
449- int SpinConstrain<TK>::get_nsc()
449+ int SpinConstrain<TK>::get_nsc() const
450450{
451451 return this ->nsc_ ;
452452}
453453
454454// / get nsc_min
455455template <typename TK>
456- int SpinConstrain<TK>::get_nsc_min()
456+ int SpinConstrain<TK>::get_nsc_min() const
457457{
458458 return this ->nsc_min_ ;
459459}
460460
461461// / get alpha_trial
462462template <typename TK>
463- double SpinConstrain<TK>::get_alpha_trial()
463+ double SpinConstrain<TK>::get_alpha_trial() const
464464{
465465 return this ->alpha_trial_ ;
466466}
467467
468468// / get sccut
469469template <typename TK>
470- double SpinConstrain<TK>::get_sccut()
470+ double SpinConstrain<TK>::get_sccut() const
471471{
472472 return this ->restrict_current_ ;
473473}
@@ -481,7 +481,7 @@ void SpinConstrain<TK>::set_sc_drop_thr(double sc_drop_thr_in)
481481
482482// / get sc_drop_thr
483483template <typename TK>
484- double SpinConstrain<TK>::get_sc_drop_thr()
484+ double SpinConstrain<TK>::get_sc_drop_thr() const
485485{
486486 return this ->sc_drop_thr_ ;
487487}
0 commit comments