@@ -13,34 +13,34 @@ namespace Read_Txt_Input
1313 {
1414 {
1515 Input_Item item (" nspin" );
16- item.default1 ({ " 1 " } );
16+ item.default_1 ( 1 );
1717 item.annotation = " 1: single spin; 2: up and down spin; 4: noncollinear spin" ;
1818 item.check_transform = [](Input_Item &self)
1919 {
2020 Input_List::check_value_size (self, 1 );
21- if (!Read_Txt_Tools::in_set (self.value [0 ].gets (), {" 1" ," 2" ," 4" }))
21+ if (!Read_Txt_Tools::in_set (self.values [0 ].gets (), {" 1" ," 2" ," 4" }))
2222 throw std::invalid_argument (" nspin must be 1,2,4" );
2323 };
2424 item.convert = [](const Input_Item &self)
2525 {
26- GlobalV::NSPIN = self.value [0 ].geti ();
26+ GlobalV::NSPIN = self.values [0 ].geti ();
2727 };
2828 this ->add_item (item);
2929 }
3030
3131 {
3232 Input_Item item (" ntype" );
33- item.default1 ({ " 0 " } );
33+ item.default_1 ( 0 );
3434 item.annotation = " atom species number" ;
3535 item.check_transform = [](Input_Item &self)
3636 {
3737 Input_List::check_value_size (self, 1 );
38- if (self.value [0 ].geti ()<=0 )
38+ if (self.values [0 ].geti ()<=0 )
3939 throw std::invalid_argument (" ntype must > 0" );
4040 };
4141 item.convert = [](const Input_Item &self)
4242 {
43- GlobalC::ucell.ntype = self.value [0 ].geti ();
43+ GlobalC::ucell.ntype = self.values [0 ].geti ();
4444 };
4545 this ->add_item (item);
4646 }
0 commit comments