264 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
414 if (this_proj -> force_field[0] == NULL)
417 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
421 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
423 if (fwrite (this_proj -> force_field[0] ->
sys_opts,
sizeof(
double), 17,
fp) != 17)
return ERROR_RW;
424 if (fwrite (this_proj -> force_field[0] -> io_opts,
sizeof(
double), 23,
fp) != 23)
return ERROR_RW;
425 if (fwrite (this_proj -> force_field[0] -> ana_opts,
sizeof(
double), 17,
fp) != 17)
return ERROR_RW;
426 if (fwrite (this_proj -> force_field[0] -> elec_opts,
sizeof(
double), 11,
fp) != 11)
return ERROR_RW;
427 if (fwrite (this_proj -> force_field[0] -> vdw_opts,
sizeof(
double), 6,
fp) != 6)
return ERROR_RW;
428 if (fwrite (this_proj -> force_field[0] -> met_opts,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
429 if (fwrite (this_proj -> force_field[0] -> equi_opts,
sizeof(
double), 17,
fp) != 17)
return ERROR_RW;
430 if (fwrite (& this_proj -> force_field[0] -> ensemble,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
431 if (fwrite (& this_proj -> force_field[0] ->
thermostat,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
432 if (fwrite (this_proj -> force_field[0] -> thermo_opts,
sizeof(
double), 10,
fp) != 10)
return ERROR_RW;
433 if (fwrite (this_proj -> force_field[0] -> md_opts,
sizeof(
double), 20,
fp) != 20)
return ERROR_RW;
434 if (fwrite (this_proj -> force_field[0] -> out_opts,
sizeof(
double), 31,
fp) != 31)
return ERROR_RW;
436 if (fwrite (this_proj -> force_field[0] -> prepare_file,
sizeof(gboolean), 2,
fp) != 2)
return ERROR_RW;
438 if (fwrite (& this_proj -> force_field[0] -> type,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
439 if (fwrite (& this_proj -> force_field[0] -> energy_unit,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
440 if (fwrite (& this_proj -> force_field[0] ->
atom_init,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
441 if (fwrite (& this_proj -> force_field[0] ->
molecules,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
443 tmp_fmol = this_proj -> force_field[0] -> first_molecule;
449 if (fwrite (this_proj -> force_field[0] -> nbody,
sizeof(
int), 5,
fp) != 5)
return ERROR_RW;
452 if (this_proj -> force_field[0] -> nbody[i])
454 tmp_fbody = this_proj -> force_field[0] -> first_body[i];
463 i = (this_proj -> force_field[0] ->
cross) ? 1 : 0;
464 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
465 if (this_proj -> force_field[0] ->
cross)
468 i = this_proj -> force_field[0] -> nbody[2] * (this_proj -> force_field[0] -> nbody[2] - 1) / 2;
471 if (fwrite (& this_proj -> force_field[0] ->
cross[j],
sizeof(
double), 3,
fp) != 3)
return ERROR_RW;
474 if (fwrite (& this_proj -> force_field[0] -> extern_fields,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
475 tmp_fext = this_proj -> force_field[0] -> first_external;
495 if (this_proj -> force_field[1] == NULL)
498 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
field_constraint * tmp_fcons
field_nth_body * tmp_fbody
int body_at(int b)
find the number of atom(s) in a non bonded interaction
field_external * tmp_fext
int struct_id(int f)
number of atoms in a structural element
field_molecule * tmp_fmol
field_tethered * tmp_ftet
Variable declarations for the creation of the DL_POLY input file(s)
Global variable declarations Global convenience function declarations Global data structure defin...
#define MAXDATC
Number of tabs for the description of the classical calculation.
#define MAXDATA
Number of tabs for the description of the classical force field.
integer(kind=c_int) function molecules(frag_and_mol, allbonds)
Function declarations for reading atomes project file Function declarations for saving atomes proje...
int save_this_string(FILE *fp, gchar *string)
save string to file
int save_lmp_field_data(FILE *fp, project *this_proj)
save LAMMPS force field data to file
int save_field_struct(FILE *fp, int fid)
save field structural properties to file
int save_field_shell(FILE *fp)
save field core shell data to file
int save_field_tethered(FILE *fp, int fid)
save field tethered data to file
int save_field_prop(FILE *fp, int fid, int pid)
save field property data to file
int save_field_atom(FILE *fp)
save field atom data to file
int save_field_molecule(FILE *fp, int fid)
save field molecule data to file
int save_field_rigid(FILE *fp)
save field rigid constraints data to file
int save_field_constraint(FILE *fp)
save field constraint data to file
int save_field_pmf(FILE *fp)
save field mean force potential data to file
int save_dlp_field_data(FILE *fp, project *this_proj)
save force field data to file
int save_field_external(FILE *fp, int fid)
save field external data to file
int save_field_body(FILE *fp, int fid)
save field nth body data to file