Skip to content

Commit

Permalink
fix a json warning. (#3818)
Browse files Browse the repository at this point in the history
  • Loading branch information
grysgreat committed Mar 27, 2024
1 parent 7dccf77 commit 6b13a52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/module_io/json_output/init_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ void gen_stru(UnitCell *ucell){

std::string atom_element = ucell->atoms[i].ncpp.psd;

Json::jsonValue element_obj(JobjectType);
element_obj.JaddStringKV(atom_label,atom_element);
Json::AbacusJson::add_json({"init","element"}, element_obj,false);

// Json::AbacusJson::add_Json(element_obj,false,"init","element");
Json::AbacusJson::add_json({"init","element",atom_label}, atom_element,false);


std::string orbital_str = GlobalV::global_orbital_dir + orbital_fn[i];
Expand Down

0 comments on commit 6b13a52

Please sign in to comment.