Trisurf Monte Carlo simulator
Samo Penic
2010-11-26 d7639a9b92bef4ee43ed2d3241e7d147d2e81e80
commit | author | age
d7639a 1 #ifndef _BOND_H
SP 2 #define _BOND_H
3
4
5 /** Initialize bond list with zero values
6  *    @param *blist is a pointer to a ts_bond_list structure
7  */
8 ts_bool init_bond_list(ts_bond_list *blist);
9
10 /** @brief Adds bond in the bond list
11  *
12  *  Function allocates space for *bond member of ts_bond_list. It then sets pointers to two vertices *vtx1 and *vtx2 that
13  *  are members of the list.
14  *    @param *blist is a pointer to initialized ts_bond_list.
15  *    @param *vtx1 is a first vertex of a bond
16  *    @param *vtx2 is a second vertex of a bond
17  *    @returns TS_SUCCESS on success, TS_FAIL otherwise. If memory cannot be allocated
18  *  this is considered as fatal error and execution stops, returning error code to the operating
19  *  system.
20  */
21 ts_bool bond_add(ts_bond_list *blist, ts_vertex *vtx1, ts_vertex *vtx2);
22
23
24
25
26
27 #endif