61 int i, j, k, l, m, n, o, p;
69 for (i=0; i<n_body; i++)
72 for (j=0; j<o_body; j++)
75 if (g_strcmp0 (fatom,
get_active_atom (tmp_new -> ma[0][0], tmp_new ->
a[0][0]) -> name) == 0 &&
76 g_strcmp0 (fatom,
get_active_atom (tmp_new -> ma[1][0], tmp_new ->
a[1][0]) -> name) == 0) new_guy = tmp_new;
81 if (g_strcmp0 (
get_active_atom (tmp_new -> ma[k][0], tmp_new ->
a[k][0]) -> name,
get_active_atom (tmp_old -> ma[l][0], tmp_old ->
a[l][0]) -> name) == 0) doit = TRUE;
84 if (g_strcmp0 (
get_active_atom (tmp_new -> ma[k][0], tmp_new ->
a[k][0]) -> name,
get_active_atom (tmp_old -> ma[k][0], tmp_old ->
a[k][0]) -> name) == 0) doit = TRUE;
89 if (tmp_old -> next != NULL) tmp_old = tmp_old -> next;
91 if (tmp_new -> next != NULL) tmp_new = tmp_new -> next;
123 new_one -> next -> prev = new_one;
124 new_one = new_one -> next;
126 new_one -> na[l] = new_guy -> na[0];
128 new_one -> ma[l] =
duplicate_int (new_guy -> na[0], new_guy -> ma[0]);
131 old_one ->
a[l] = NULL;
132 old_one ->
a[l] = g_malloc (old_one -> na[l]*
sizeof*old_one ->
a[l]);
133 old_one -> ma[l] = NULL;
134 old_one -> ma[l] = g_malloc (old_one -> na[l]*
sizeof*old_one -> ma[l]);
140 old_one -> ma[l][p] =
tmp_fbody -> ma[l][n];
153 tmp_fbody -> ma[l][0] = new_guy -> ma[0][0];
167 for (i=1; i<n_body; i++)
170 tmp_new -> next -> prev = tmp_new;
171 tmp_new = tmp_new -> next;
172 tmp_old = tmp_old -> next;
field_atom * get_active_atom(int a, int b)
retrieve field atom
field_nth_body * get_active_body(int a, int b)
retrieve field nth body interaction
void duplicate_nbody_params(field_nth_body *new_fbody, field_nth_body *old_fbody)
copy field body parameter list
void compare_body(gchar *fatom, field_nth_body *new_body, int n_body, field_nth_body *old_body, int o_body)
compare, and if require ajdust, two lists of field body properties
void compare_non_bonded(gchar *fatom)
compare non bond interaction parameters
field_nth_body * comp_fbody
field_nth_body * duplicate_field_nth_body(field_nth_body *old_fbody)
create copy of a field body property
field_nth_body * tmp_fbody
int body_at(int b)
find the number of atom(s) in a non bonded interaction
classical_field * tmp_field
field_nth_body * new_body
Variable declarations for the creation of the DL_POLY input file(s)
int * duplicate_int(int num, int *old_val)
copy a list of int
int init_vdw(gboolean init)
initialize the VdW section of a classical force field
Global variable declarations Global convenience function declarations Global data structure defin...
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Function declarations for the creation of the OpenGL window.
Messaging function declarations.