Skip to content

Commit ead8cba

Browse files
committed
add hydrate and remove oc20 and salex
1 parent 54d7cd3 commit ead8cba

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed
0 Bytes
Binary file not shown.

tools/for_coding/for_perioidc_table/nep_data_toolkit.cpp

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -681,29 +681,27 @@ static void split_with_sid(const std::vector<Structure>& structures)
681681
{
682682
std::ofstream output_ch("ch.xyz");
683683
std::ofstream output_unep1("unep1.xyz");
684-
std::ofstream output_oc20("oc20.xyz");
684+
std::ofstream output_hydrate("hydrate.xyz");
685685
std::ofstream output_chonps("chonps.xyz");
686686
std::ofstream output_spice("spice.xyz");
687687
std::ofstream output_water("water.xyz");
688688
std::ofstream output_mp("mp.xyz");
689689
std::ofstream output_omat("omat.xyz");
690690
std::ofstream output_protein("protein.xyz");
691691
std::ofstream output_ani1xnr("ani1xnr.xyz");
692-
std::ofstream output_salex("salex.xyz");
693692
std::ofstream output_mof("mof.xyz");
694693
std::ofstream output_sse_vasp("sse_vasp.xyz");
695694
std::ofstream output_sse_abacus("sse_abacus.xyz");
696695
int num_ch = 0;
697696
int num_unep1 = 0;
698-
int num_oc20 = 0;
697+
int num_hydrate = 0;
699698
int num_chonps = 0;
700699
int num_spice = 0;
701700
int num_omat = 0;
702701
int num_water = 0;
703702
int num_mp = 0;
704703
int num_protein = 0;
705704
int num_ani1xnr = 0;
706-
int num_salex = 0;
707705
int num_mof = 0;
708706
int num_sse_vasp = 0;
709707
int num_sse_abacus = 0;
@@ -714,9 +712,9 @@ static void split_with_sid(const std::vector<Structure>& structures)
714712
} else if (structures[nc].sid == "unep1") {
715713
write_one_structure(output_unep1, structures[nc]);
716714
num_unep1++;
717-
} else if (structures[nc].sid == "oc20") {
718-
write_one_structure(output_oc20, structures[nc]);
719-
num_oc20++;
715+
} else if (structures[nc].sid == "hydrate") {
716+
write_one_structure(output_hydrate, structures[nc]);
717+
num_hydrate++;
720718
} else if (structures[nc].sid == "chonps") {
721719
write_one_structure(output_chonps, structures[nc]);
722720
num_chonps++;
@@ -735,9 +733,6 @@ static void split_with_sid(const std::vector<Structure>& structures)
735733
} else if (structures[nc].sid == "ani1xnr") {
736734
write_one_structure(output_ani1xnr, structures[nc]);
737735
num_ani1xnr++;
738-
} else if (structures[nc].sid == "salex") {
739-
write_one_structure(output_salex, structures[nc]);
740-
num_salex++;
741736
} else if (structures[nc].sid == "mof") {
742737
write_one_structure(output_mof, structures[nc]);
743738
num_mof++;
@@ -754,29 +749,27 @@ static void split_with_sid(const std::vector<Structure>& structures)
754749
}
755750
output_ch.close();
756751
output_unep1.close();
757-
output_oc20.close();
752+
output_hydrate.close();
758753
output_chonps.close();
759754
output_spice.close();
760755
output_omat.close();
761756
output_water.close();
762757
output_mp.close();
763758
output_protein.close();
764759
output_ani1xnr.close();
765-
output_salex.close();
766760
output_mof.close();
767761
output_sse_abacus.close();
768762
output_sse_vasp.close();
769763
std::cout << "Number of structures written into ch.xyz = " << num_ch << std::endl;
770764
std::cout << "Number of structures written into unep1.xyz = " << num_unep1 << std::endl;
771-
std::cout << "Number of structures written into oc20.xyz = " << num_oc20 << std::endl;
765+
std::cout << "Number of structures written into hydrate.xyz = " << num_hydrate << std::endl;
772766
std::cout << "Number of structures written into chonps.xyz = " << num_chonps << std::endl;
773767
std::cout << "Number of structures written into spice.xyz = " << num_spice << std::endl;
774768
std::cout << "Number of structures written into water.xyz = " << num_water << std::endl;
775769
std::cout << "Number of structures written into mp.xyz = " << num_mp << std::endl;
776770
std::cout << "Number of structures written into omat.xyz = " << num_omat << std::endl;
777771
std::cout << "Number of structures written into protein.xyz = " << num_protein << std::endl;
778772
std::cout << "Number of structures written into ani1xnr.xyz = " << num_ani1xnr << std::endl;
779-
std::cout << "Number of structures written into salex.xyz = " << num_salex << std::endl;
780773
std::cout << "Number of structures written into mof.xyz = " << num_mof << std::endl;
781774
std::cout << "Number of structures written into sse_abacus.xyz = " << num_sse_abacus << std::endl;
782775
std::cout << "Number of structures written into sse_vasp.xyz = " << num_sse_vasp << std::endl;

0 commit comments

Comments
 (0)