56 Curve * this_curve = this_proj -> analysis[rid] -> curves[cid];
58 g_debug (
"IODEBUG: %s: pid= %d, rid= %d, cid= %d", iost, this_proj ->
id, rid, cid);
59 g_debug (
"IODEBUG: %s: ndata= %d", iost, this_curve -> ndata);
60 if (this_curve -> data[0] == NULL)
62 g_debug (
"IODEBUG: %s: data[0] == NULL", iost);
64 g_debug (
"IODEBUG: %s: x[0]= %f", iost, this_curve -> data[0][0]);
65 g_debug (
"IODEBUG: %s: y[0]= %f", iost, this_curve -> data[1][0]);
66 g_debug (
"IODEBUG: %s: x[ndata-1]= %f", iost, this_curve -> data[0][this_curve -> ndata - 1]);
67 g_debug (
"IODEBUG: %s: y[ndata-1]= %f", iost, this_curve -> data[1][this_curve -> ndata - 1]);
70 g_debug (
"IODEBUG: %s: cmax[0]= %f, cmax[1]= %f", iost,
71 this_curve -> cmax[0], this_curve -> cmax[1]);
72 g_debug (
"IODEBUG: %s: name= %s", iost, this_curve -> name);
73 g_debug (
"IODEBUG: %s: show_title= %d", iost, this_curve ->
show_title);
74 g_debug (
"IODEBUG: %s: default_title= %d", iost, this_curve ->
default_title);
75 g_debug (
"IODEBUG: %s: title= %s", iost, this_curve -> title);
76 g_debug (
"IODEBUG: %s: title_font= %s", iost, this_curve -> title_font);
77 g_debug (
"IODEBUG: %s: title_pos[0]= %f, title_pos[1]= %f", iost,
78 this_curve -> title_pos[0], this_curve -> title_pos[1]);
79 g_debug (
"IODEBUG: %s: title.red= %f, title.green= %f, title.blue= %f", iost,
80 this_curve -> title_color.red,
81 this_curve -> title_color.green,
82 this_curve -> title_color.blue);
84 g_debug (
"IODEBUG: %s: axmin[0]= %f, axmin[1]= %f", iost,
85 this_curve -> axmin[0], this_curve -> axmin[1]);
86 g_debug (
"IODEBUG: %s: axmax[0]= %f, axmax[1]= %f", iost,
87 this_curve -> axmax[0], this_curve -> axmax[1]);
88 g_debug (
"IODEBUG: %s: x_axis_title= %s", iost, this_curve -> axis_title[0]);
89 g_debug (
"IODEBUG: %s: x_axis_title_font= %s", iost, this_curve -> axis_title_font[0]);
90 g_debug (
"IODEBUG: %s: x_axis_title_pos[0]= %d, x_axis_title_pos[1]= %d", iost,
91 this_curve -> axis_title_x[0], this_curve -> axis_title_y[0]);
92 g_debug (
"IODEBUG: %s: y_axis_title= %s", iost, this_curve -> axis_title[1]);
93 g_debug (
"IODEBUG: %s: y_axis_title_font= %s", iost, this_curve -> axis_title_font[1]);
94 g_debug (
"IODEBUG: %s: y_axis_title_pos[0]= %d, y_axis_title_pos[1]= %d", iost,
95 this_curve -> axis_title_x[1], this_curve -> axis_title_y[1]);
96 g_debug (
"IODEBUG: %s: scale[0]= %d, scale[1]= %d", iost,
97 this_curve ->
scale[0], this_curve ->
scale[1]);
98 g_debug (
"IODEBUG: %s: x_axis_defaut_title= %d", iost, this_curve -> axis_defaut_title[0]);
99 g_debug (
"IODEBUG: %s: y_axis_defaut_title= %d", iost, this_curve -> axis_defaut_title[1]);
100 g_debug (
"IODEBUG: %s: grid[0]= %d, grid[1]= %d", iost,
101 this_curve -> show_grid[0], this_curve -> show_grid[1]);
102 g_debug (
"IODEBUG: %s: show_axis[0]= %d, show_axis[1]= %d", iost,
103 this_curve -> show_axis[0], this_curve -> show_axis[1]);
104 g_debug (
"IODEBUG: %s: autoscale[0]= %d, autoscale[1]= %d", iost,
106 g_debug (
"IODEBUG: %s: majt[0]= %f, majt[1]= %f", iost,
107 this_curve ->
majt[0], this_curve ->
majt[1]);
108 g_debug (
"IODEBUG: %s: mint[0]= %d, mint[1]= %d", iost,
109 this_curve -> mint[0], this_curve -> mint[1]);
110 g_debug (
"IODEBUG: %s: ticks_io[0]= %d, ticks_io[1]= %d", iost,
111 this_curve -> ticks_io[0], this_curve -> ticks_io[1]);
112 g_debug (
"IODEBUG: %s: ticks_pos[0]= %d, ticks_pos[1]= %d", iost,
113 this_curve -> ticks_pos[0], this_curve -> ticks_pos[1]);
114 g_debug (
"IODEBUG: %s: majt_size[0]= %d, majt_size[1]= %d", iost,
115 this_curve -> majt_size[0], this_curve -> majt_size[1]);
116 g_debug (
"IODEBUG: %s: mint_size[0]= %d, mint_size[1]= %d", iost,
117 this_curve -> mint_size[0], this_curve -> mint_size[1]);
118 g_debug (
"IODEBUG: %s: labels_pos[0]= %d, labels_pos[1]= %d", iost,
119 this_curve -> labels_pos[0], this_curve -> labels_pos[1]);
120 g_debug (
"IODEBUG: %s: labels_digit[0]= %d, labels_digit[1]= %d", iost,
121 this_curve -> labels_digit[0], this_curve -> labels_digit[1]);
122 g_debug (
"IODEBUG: %s: labels_font[0]= %s, labels_font[1]= %s", iost,
123 this_curve -> labels_font[0], this_curve -> labels_font[1]);
124 g_debug (
"IODEBUG: %s: labels_angle[0]= %f, labels_angle[1]= %f", iost,
125 this_curve -> labels_angle[0], this_curve -> labels_angle[1]);
126 g_debug (
"IODEBUG: %s: labels_shift_x[0]= %d, labels_shift_y[0]= %d", iost,
127 this_curve -> labels_shift_x[0], this_curve -> labels_shift_y[0]);
128 g_debug (
"IODEBUG: %s: labels_shift_x[1]= %d, labels_shift_y[1]= %d", iost,
129 this_curve -> labels_shift_x[1], this_curve -> labels_shift_y[1]);
131 g_debug (
"IODEBUG: %s: show_legend= %d", iost, this_curve ->
show_legend);
132 g_debug (
"IODEBUG: %s: legend_pos[0]= %f, legend_pos[1]= %f", iost,
133 this_curve -> legend_pos[0], this_curve -> legend_pos[1]);
134 g_debug (
"IODEBUG: %s: legend_font= %s", iost, this_curve -> legend_font);
135 g_debug (
"IODEBUG: %s: legend.red= %f, legend.green= %f, legend.blue= %f", iost,
136 this_curve -> legend_color.red,
137 this_curve -> legend_color.green,
138 this_curve -> legend_color.blue);
139 g_debug (
"IODEBUG: %s: show_legend_box= %d", iost, this_curve -> show_legend_box);
140 g_debug (
"IODEBUG: %s: legend_box_dash= %d", iost, this_curve -> legend_box_dash);
141 g_debug (
"IODEBUG: %s: legend_box_thickness= %f", iost, this_curve -> legend_box_thickness);
142 g_debug (
"IODEBUG: %s: legend_box.red= %f, legend_box.green= %f, legend_box.blue= %f", iost,
143 this_curve -> legend_box_color.red,
144 this_curve -> legend_box_color.green,
145 this_curve -> legend_box_color.blue);
147 g_debug (
"IODEBUG: %s: show_frame= %d", iost, this_curve ->
show_frame);
148 g_debug (
"IODEBUG: %s: frame_type= %d", iost, this_curve -> frame_type);
149 g_debug (
"IODEBUG: %s: frame_dash= %d", iost, this_curve -> frame_dash);
150 g_debug (
"IODEBUG: %s: frame_thickness= %f", iost, this_curve -> frame_thickness);
151 g_debug (
"IODEBUG: %s: frame.red= %f, frame.green= %f, frame.blue= %f", iost,
152 this_curve -> frame_color.red,
153 this_curve -> frame_color.green,
154 this_curve -> frame_color.blue);
155 g_debug (
"IODEBUG: %s: frame.xmin= %f, frame.xmax= %f", iost,
156 this_curve -> frame_pos[0][0], this_curve -> frame_pos[0][1]);
157 g_debug (
"IODEBUG: %s: frame.ymin= %f, frame.ymax= %f", iost,
158 this_curve -> frame_pos[1][0], this_curve -> frame_pos[1][1]);
160 g_debug (
"IODEBUG: %s: backc.red= %f, backc.green= %f, backc.blue= %f", iost,
161 this_curve -> backcolor.red,
162 this_curve -> backcolor.green,
163 this_curve -> backcolor.blue);
164 g_debug (
"IODEBUG: %s: legend_font= %s", iost, this_curve -> legend_font);
165 if (this_curve -> cfile != NULL)
167 g_debug (
"IODEBUG: %s: cfile= %s", iost, this_curve -> cfile);
172 g_debug (
"IODEBUG: %s: No curve window", iost);
186 g_debug (
"IODEBUG::%s:: lattice debug", iost);
187 cell_info * debug_cell = & this_proj -> cell;
188 g_debug (
"IODEBUG::%s:: pbc= %d, frac= %d, ltype= %d", iost, debug_cell -> pbc, debug_cell -> frac, debug_cell -> ltype);
189 g_debug (
"IODEBUG::%s:: npt= %d, has_a_box= %d, crystal= %d", iost, debug_cell -> npt, debug_cell -> has_a_box, debug_cell -> crystal);
190 g_debug (
"IODEBUG::%s:: volumec= %f, density= %f", iost, debug_cell -> volume, debug_cell -> density);
191 g_debug (
"IODEBUG::%s:: cextra[0]= %d, cextra[1]= %d, cextra[2]= %d", iost, debug_cell -> cextra[0], debug_cell -> cextra[1], debug_cell -> cextra[2]);
192 if (debug_cell ->
box)
196 for (i=0; i<2; i++) g_debug (
"IODEBUG::%s:: i= %d, param[%d][0]= %f, param[%d][1]= %f, param[%d][2]= %f", iost, i, i, debug_box ->
param[i][0], i, debug_box ->
param[i][1], i, debug_box ->
param[i][2]);
197 for (i=0; i<3; i++) g_debug (
"IODEBUG::%s:: i= %d, vect[%d][0]= %f, vect[%d][1]= %f, vect[%d][2]= %f", iost, i, i, debug_box -> vect[i][0], i, debug_box -> vect[i][1], i, debug_box -> vect[i][2]);
198 for (i=0; i<3; i++) g_debug (
"IODEBUG::%s:: i= %d, rvect[%d][0]= %f, rvect[%d][1]= %f, rvect[%d][2]= %f", iost, i, i, debug_box -> rvect[i][0], i, debug_box -> rvect[i][1], i, debug_box -> rvect[i][2]);
214 g_debug (
"IODEBUG::%s: name= %s", iost, this_proj -> name);
215 if (this_proj -> coordfile != NULL)
217 g_debug (
"IODEBUG::%s: coordfile= %s", iost, this_proj -> coordfile);
218 g_debug (
"IODEBUG::%s: tfile= %d", iost, this_proj -> tfile);
220 if (this_proj -> bondfile != NULL)
222 g_debug (
"IODEBUG::%s: bondfile= %s", iost, this_proj -> bondfile);
224 g_debug (
"IODEBUG::%s: newproj= %d", iost, this_proj -> newproj);
225 g_debug (
"IODEBUG::%s: pbc= %d", iost, this_proj -> cell.pbc);
226 g_debug (
"IODEBUG::%s: frac= %d", iost, this_proj -> cell.frac);
227 g_debug (
"IODEBUG::%s: run= %d", iost, this_proj -> run);
228 g_debug (
"IODEBUG::%s: dmtx= %d", iost, this_proj -> dmtx);
229 g_debug (
"IODEBUG::%s: nspec= %d", iost, this_proj -> nspec);
230 g_debug (
"IODEBUG::%s: natomes= %d", iost, this_proj -> natomes);
231 g_debug (
"IODEBUG::%s: steps= %d", iost, this_proj -> steps);
232 g_debug (
"IODEBUG::%s: grtotcutoff= %f", iost, this_proj ->
chemistry -> grtotcutoff);
233 g_debug (
"IODEBUG::%s: cvect[0][0]= %f, cvect[0][1]= %f, cvect[0][2]= %f",
234 iost, this_proj -> cell.box[0].vect[0][0], this_proj -> cell.box[0].vect[0][1], this_proj -> cell.box[0].vect[0][2]);
235 g_debug (
"IODEBUG::%s: cvect[1][0]= %f, cvect[1][1]= %f, cvect[1][2]= %f",
236 iost, this_proj -> cell.box[0].vect[1][0], this_proj -> cell.box[0].vect[1][1], this_proj -> cell.box[0].vect[1][2]);
237 g_debug (
"IODEBUG::%s: cvect[2][0]= %f, cvect[2][1]= %f, cvect[2][2]= %f",
238 iost, this_proj -> cell.box[0].vect[2][0], this_proj -> cell.box[0].vect[2][1], this_proj -> cell.box[0].vect[2][2]);
239 g_debug (
"IODEBUG::%s: langles[0]= %f, langles[1]= %f, langles[2]= %f", iost,
240 this_proj -> cell.box[0].param[1][0], this_proj -> cell.box[0].param[1][1], this_proj -> cell.box[0].param[1][2]);
241 g_debug (
"IODEBUG::%s: vmod[0]= %f, vmod[1]= %f, vmod[2]= %f", iost,
242 this_proj -> cell.box[0].param[0][0], this_proj -> cell.box[0].param[0][1], this_proj -> cell.box[0].param[0][2]);
245 g_debug (
"IODEBUG::%s: i= %d, visok[i]= %d", iost, i, this_proj -> analysis[i] -> calc_ok);
246 g_debug (
"IODEBUG::%s: i= %d, initok[i]= %d", iost, i, this_proj -> analysis[i] -> init_ok);
247 g_debug (
"IODEBUG::%s: i= %d, num_delta[i]= %d", iost, i, this_proj -> analysis[i] -> num_delta);
248 g_debug (
"IODEBUG::%s: i= %d, delta[i]= %f", iost, i, this_proj -> analysis[i] -> delta);
249 g_debug (
"IODEBUG::%s: i= %d, min[i]= %f", iost, i, this_proj -> analysis[i] ->
min);
250 g_debug (
"IODEBUG::%s: i= %d, max[i]= %f", iost, i, this_proj -> analysis[i] ->
max);
252 if (this_proj -> natomes != 0 && this_proj -> nspec != 0)
254 for (i=0; i<this_proj -> steps; i++)
256 g_debug (
"IODEBUG::%s: proj.atom[%d][%d].x= %f, proj.atom[%d][%d].x= %f",
257 iost, i, 0, this_proj ->
atoms[i][0].
x, i, this_proj -> natomes-1, this_proj ->
atoms[i][this_proj -> natomes - 1].
x);
258 g_debug (
"IODEBUG::%s: proj.atom[%d][%d].y= %f, proj.atom[%d][%d].y= %f",
259 iost, i, 0, this_proj ->
atoms[i][0].
y, i, this_proj -> natomes - 1, this_proj ->
atoms[i][this_proj -> natomes - 1].
y);
260 g_debug (
"IODEBUG::%s: proj.atom[%d][%d].z= %f, proj.atom[%d][%d].z= %f",
261 iost, i, 0, this_proj ->
atoms[i][0].
z, i, this_proj -> natomes - 1, this_proj ->
atoms[i][this_proj -> natomes - 1].
z);
263 for (i=0; i<this_proj -> nspec; i++)
265 g_debug (
"IODEBUG::%s: i= %d, nsps[i]= %d", iost, i, this_proj ->
chemistry -> nsps[i]);
266 g_debug (
"IODEBUG::%s: i= %d, atid[i]= %d", iost, i, (
int)this_proj ->
chemistry -> chem_prop[
CHEM_Z][i]);
267 g_debug (
"IODEBUG::%s: i= %d, mass[i]= %f", iost, i, this_proj ->
chemistry -> chem_prop[
CHEM_M][i]);
268 g_debug (
"IODEBUG::%s: i= %d, rad[i]= %f", iost, i, this_proj ->
chemistry -> chem_prop[
CHEM_R][i]);
270 for (i=0; i<this_proj -> nspec; i++)
272 for (j=0; j<this_proj -> nspec; j++)
274 g_debug (
"IODEBUG::%s: i= %d, j= %d, cutoffs[i][j]= %f", iost, i, j, this_proj ->
chemistry -> cutoffs[i][j]);