53 image *
img = this_proj -> modelgl -> anim -> last ->
img;
54 if (! this_proj -> modelgl ->
bonding || ! this_proj -> modelgl -> adv_bonding[1] || this_proj -> natomes >
ATOM_LIMIT || this_proj -> steps >
STEP_LIMIT)
56 for (i=0; i<this_proj -> steps; i++)
58 for (j=0; j<this_proj -> natomes; j++)
60 if (fwrite (this_proj ->
atoms[i][j].coord,
sizeof(
int), 5,
fp) != 5)
return ERROR_COORD;
61 if (fwrite (& this_proj ->
atoms[i][j].numv,
sizeof(
int), 1,
fp) != 1)
return ERROR_COORD;
62 if (this_proj ->
atoms[i][j].numv)
64 if (fwrite (this_proj ->
atoms[i][j].vois,
sizeof(
int), this_proj ->
atoms[i][j].numv,
fp) != this_proj ->
atoms[i][j].numv)
return ERROR_COORD;
67 if (fwrite (this_proj -> modelgl ->
bonds[i],
sizeof(
int), 2,
fp) != 2)
return ERROR_COORD;
70 for (k=0; k<this_proj -> modelgl ->
bonds[i][j]; k++)
72 if (fwrite (this_proj -> modelgl -> bondid[i][j][k],
sizeof(
int), 2,
fp) != 2)
return ERROR_COORD;
80 if (fwrite (coord -> ntg[i],
sizeof(
int), coord -> species,
fp) != coord -> species)
return ERROR_COORD;
81 for (j=0; j<coord -> species; j++)
83 if (fwrite (coord -> geolist[i][j],
sizeof(
int), coord -> ntg[i][j],
fp) != coord -> ntg[i][j])
return ERROR_COORD;
86 for (k=0; k<coord -> ntg[i][j]; k++)
88 if (fwrite (coord -> partial_geo[j][k],
sizeof(
int), coord -> species,
fp) != coord -> species)
return ERROR_COORD;
97 if (fwrite (& this_proj -> coord -> totcoord[i],
sizeof(
int), 1,
fp) != 1)
return ERROR_COORD;
100 if (fwrite (
img -> show_atom[i],
sizeof(gboolean), this_proj -> nspec,
fp) != this_proj -> nspec)
return ERROR_COORD;
101 if (fwrite (
img -> show_label[i],
sizeof(gboolean), this_proj -> nspec,
fp) != this_proj -> nspec)
return ERROR_COORD;
103 if (this_proj -> coord -> totcoord[i])
105 if (fwrite (
img -> show_coord[i],
sizeof(gboolean), this_proj -> coord -> totcoord[i],
fp) != this_proj -> coord -> totcoord[i])
return ERROR_COORD;
106 if (i < 2 || (i > 3 && i < 9))
108 if (fwrite (
img -> show_poly[i],
sizeof(gboolean), this_proj -> coord -> totcoord[i],
fp) != this_proj -> coord -> totcoord[i])
return ERROR_COORD;
integer(kind=c_int) function bonding(scf, sbf, adv, bdist, bmin, delt_ij, sfil)