450 if (this_proj -> force_field[0] == NULL)
460 if (fwrite (this_proj -> force_field[0] -> io_opts,
sizeof(
double), 23,
fp) != 23)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
461 if (fwrite (this_proj -> force_field[0] -> ana_opts,
sizeof(
double), 17,
fp) != 17)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
462 if (fwrite (this_proj -> force_field[0] -> elec_opts,
sizeof(
double), 11,
fp) != 11)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
463 if (fwrite (this_proj -> force_field[0] -> vdw_opts,
sizeof(
double), 6,
fp) != 6)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
464 if (fwrite (this_proj -> force_field[0] -> met_opts,
sizeof(
double), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
465 if (fwrite (this_proj -> force_field[0] -> equi_opts,
sizeof(
double), 17,
fp) != 17)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
466 if (fwrite (& this_proj -> force_field[0] -> ensemble,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
468 if (fwrite (this_proj -> force_field[0] -> thermo_opts,
sizeof(
double), 10,
fp) != 10)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
469 if (fwrite (this_proj -> force_field[0] -> md_opts,
sizeof(
double), 20,
fp) != 20)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
470 if (fwrite (this_proj -> force_field[0] -> out_opts,
sizeof(
double), 31,
fp) != 31)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
472 if (fwrite (this_proj -> force_field[0] -> prepare_file,
sizeof(gboolean), 2,
fp) != 2)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
474 if (fwrite (& this_proj -> force_field[0] -> type,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
475 if (fwrite (& this_proj -> force_field[0] -> energy_unit,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
479 tmp_fmol = this_proj -> force_field[0] -> first_molecule;
489 if (fwrite (this_proj -> force_field[0] -> nbody,
sizeof(
int), 5,
fp) != 5)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
492 if (this_proj -> force_field[0] -> nbody[i])
494 tmp_fbody = this_proj -> force_field[0] -> first_body[i];
507 i = (this_proj -> force_field[0] ->
cross) ? 1 : 0;
509 if (this_proj -> force_field[0] ->
cross)
512 i = this_proj -> force_field[0] -> nbody[2] * (this_proj -> force_field[0] -> nbody[2] - 1) / 2;
515 if (fwrite (& this_proj -> force_field[0] ->
cross[j],
sizeof(
double), 3,
fp) != 3)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
518 if (fwrite (& this_proj -> force_field[0] -> extern_fields,
sizeof(
int), 1,
fp) != 1)
return signal_error (__FILE__, __func__, __LINE__,
ERROR_FIELD);
519 tmp_fext = this_proj -> force_field[0] -> first_external;