| | |
| | | m++; |
| | | if(m>1000) { |
| | | k=9999; //break also ot of the outer loop |
| | | printf("was here\n"); |
| | | break; |
| | | } |
| | | } |
| | |
| | | ts_uint gvtxi; |
| | | ts_bool retval; |
| | | ts_double dphi,dh; |
| | | |
| | | cell_occupation(vesicle); //needed for evading the membrane |
| | | // Grafting polymers: |
| | | int tries=0; |
| | |
| | | return TS_SUCCESS; |
| | | } |
| | | |
| | | |
| | | |
| | | ts_poly_list *init_empty_poly_list(ts_uint n_poly, ts_uint n_mono){ |
| | | ts_poly_list *poly_list=(ts_poly_list *)calloc(1,sizeof(ts_poly_list)); |
| | | poly_list->poly=(ts_poly **)calloc(n_poly,sizeof(ts_poly *)); |
| | | ts_uint i; |
| | | for (i=0; i<n_poly;i++){ |
| | | poly_list->poly[i]=init_poly(n_mono, NULL); |
| | | } |
| | | poly_list->n = n_poly; |
| | | return poly_list; |
| | | } |