--- trunk/OOPSE/libBASS/make_nodes.c 2004/01/29 23:01:17 998 +++ trunk/OOPSE/libBASS/make_nodes.c 2004/05/11 04:21:52 1153 @@ -80,7 +80,8 @@ struct node_tag* assign_s( char* lhs, char* rhs ){ /* The next function deals with creating and initializing of the - members statements used by the bonds, bends, torsions, and rigid bodies. + members statements used by the bonds, bends, torsions, rigid bodies, + and cutoff groups. */ struct node_tag* members( char* list_str ){ @@ -243,6 +244,21 @@ struct node_tag* rigidbody_blk( int index, struct node the_node = ( struct node_tag* )malloc( sizeof( node ) ); the_node->type = RIGIDBODY_HEAD; + the_node->index = 0; + the_node->next_stmt = NULL; + the_node->prev_stmt = NULL; + the_node->stmt_list = walk_to_top( stmt_list ); + + return the_node; +} + +struct node_tag* cutoffgroup_blk( int index, struct node_tag* stmt_list ){ + + struct node_tag* the_node; + the_node = ( struct node_tag* )malloc( sizeof( node ) ); + + // The guillotine statement: + the_node->type = CUTOFFGROUP_HEAD; the_node->index = 0; the_node->next_stmt = NULL; the_node->prev_stmt = NULL;