72 if (fwrite (& this_proj ->
atoms[s][
a].coord[2],
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
73 if (fwrite (& this_proj ->
atoms[s][
a].coord[3],
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
88 if (fwrite (& tmp ->
id,
sizeof(
int), 1,
fp) != 1)
return 0;
89 if (fwrite (& tmp -> md,
sizeof(
int), 1,
fp) != 1)
return 0;
90 if (fwrite (& tmp -> multiplicity,
sizeof(
int), 1,
fp) != 1)
return 0;
91 if (fwrite (tmp -> fragments,
sizeof(
int), tmp -> multiplicity,
fp) != tmp -> multiplicity)
return 0;
92 if (fwrite (& tmp -> natoms,
sizeof(
int), 1,
fp) != 1)
return 0;
93 if (fwrite (& tmp -> nspec,
sizeof(
int), 1,
fp) != 1)
return 0;
94 if (fwrite (tmp -> species,
sizeof(
int), this_proj -> nspec,
fp) != this_proj -> nspec)
return 0;
110 if (! this_proj -> modelfc)
112 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_MOL;
116 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_MOL;
119 if (fwrite (& this_proj -> coord -> totcoord[i],
sizeof(
int), 1,
fp) != 1)
return ERROR_MOL;
121 if (fwrite (this_proj -> modelfc -> mol_by_step,
sizeof(
int), this_proj -> steps,
fp) != this_proj -> steps)
return ERROR_MOL;
122 for (i=0; i<this_proj -> steps; i++)
124 for (j=0; j<this_proj -> modelfc -> mol_by_step[i]; j++)
129 for (i=0; i<this_proj -> steps; i++)
131 for (j=0; j< this_proj -> natomes; j++)
Global variable declarations Global convenience function declarations Global data structure defin...
Function declarations for reading atomes project file Function declarations for saving atomes proje...
int save_atom_m(FILE *fp, project *this_proj, int s, int a)
save atom data to file
int save_mol(FILE *fp, project *this_proj)
save molecule information to file
int save_this_mol(FILE *fp, project *this_proj, molecule *tmp)
save this molecule data to file