File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -214,10 +214,22 @@ void RDF::postprocess(
214214
215215 FILE* fid = fopen (" rdf.out" , " a" );
216216
217+ std::vector<std::string> type_symbols (rdf_para.num_types );
218+ for (int a = 0 ; a < rdf_para.num_types ; a++) {
219+ int type_idx = rdf_para.type_index [a];
220+ for (int n = 0 ; n < atom.number_of_atoms ; n++) {
221+ if (atom.cpu_type [n] == type_idx) {
222+ type_symbols[a] = atom.cpu_atom_symbol [n];
223+ break ;
224+ }
225+ }
226+ }
227+
217228 fprintf (fid, " #radius total" );
218229 for (int a = 0 ; a < rdf_para.num_types ; a++) {
219230 for (int b = a; b < rdf_para.num_types ; b++) {
220231 fprintf (fid, " type_%d_%d" , rdf_para.type_index [a], rdf_para.type_index [b]);
232+ fprintf (fid, " %s-%s" , type_symbols[a].c_str (), type_symbols[b].c_str ());
221233 }
222234 }
223235 fprintf (fid, " \n " );
You can’t perform that action at this time.
0 commit comments