80 |
|
|
81 |
|
/* |
82 |
|
The next function deals with creating and initializing of the |
83 |
< |
members statements used by the bonds, bends, torsions, and rigid bodies. |
83 |
> |
members statements used by the bonds, bends, torsions, rigid bodies, |
84 |
> |
and cutoff groups. |
85 |
|
*/ |
86 |
|
|
87 |
|
struct node_tag* members( char* list_str ){ |
244 |
|
the_node = ( struct node_tag* )malloc( sizeof( node ) ); |
245 |
|
|
246 |
|
the_node->type = RIGIDBODY_HEAD; |
247 |
< |
the_node->index = 0; |
247 |
> |
the_node->index = index; |
248 |
> |
the_node->next_stmt = NULL; |
249 |
> |
the_node->prev_stmt = NULL; |
250 |
> |
the_node->stmt_list = walk_to_top( stmt_list ); |
251 |
> |
|
252 |
> |
return the_node; |
253 |
> |
} |
254 |
> |
|
255 |
> |
struct node_tag* cutoffgroup_blk( int index, struct node_tag* stmt_list ){ |
256 |
> |
|
257 |
> |
struct node_tag* the_node; |
258 |
> |
the_node = ( struct node_tag* )malloc( sizeof( node ) ); |
259 |
> |
|
260 |
> |
// The guillotine statement: |
261 |
> |
the_node->type = CUTOFFGROUP_HEAD; |
262 |
> |
the_node->index = index; |
263 |
|
the_node->next_stmt = NULL; |
264 |
|
the_node->prev_stmt = NULL; |
265 |
|
the_node->stmt_list = walk_to_top( stmt_list ); |