1+ // =======================
2+ // AUTHOR : Peize Lin
3+ // DATE : 2021-12-13
4+ // =======================
5+
16#include " read_txt_input_list.h"
27
38#include " src_io/read_txt_tools.h"
@@ -17,7 +22,6 @@ namespace Read_Txt_Input
1722 item.annotation = " 1: single spin; 2: up and down spin; 4: noncollinear spin" ;
1823 item.check_transform = [](Input_Item &self)
1924 {
20- Input_List::check_value_size (self, 1 );
2125 if (!Read_Txt_Tools::in_set (self.values [0 ].geti (), {1 ,2 ,4 }))
2226 throw std::invalid_argument (" nspin must be 1,2,4" );
2327 };
@@ -34,7 +38,6 @@ namespace Read_Txt_Input
3438 item.annotation = " atom species number" ;
3539 item.check_transform = [](Input_Item &self)
3640 {
37- Input_List::check_value_size (self, 1 );
3841 if (self.values [0 ].geti ()<=0 )
3942 throw std::invalid_argument (" ntype must > 0" );
4043 };
@@ -51,7 +54,6 @@ namespace Read_Txt_Input
5154 item.annotation = " turn symmetry on or off" ;
5255 item.check_transform = [](Input_Item &self)
5356 {
54- Input_List::check_value_size (self, 1 );
5557 if (!Read_Txt_Tools::in_set ( self.values [0 ].gets (), Read_Txt_Tools::Preset::Bool))
5658 throw std::invalid_argument (" symmetry must be bool" );
5759 };
0 commit comments