Trisurf Monte Carlo simulator
Samo Penic
2014-02-11 23d807748be58e5178c04304d9cc788bf122eb12
src/initial_distribution.c
@@ -9,13 +9,25 @@
#include "triangle.h"
#include "initial_distribution.h"
#include "energy.h"
#include "memory.h"
ts_vesicle *initial_distribution_dipyramid(ts_uint nshell, ts_uint ncmax1, ts_uint ncmax2, ts_uint ncmax3, ts_double stepsize){
    ts_fprintf(stderr,"Starting initial_distribution on vesicle with %u shells!...\n",nshell);
   ts_bool retval;
    ts_uint no_vertices=5*nshell*nshell+2;
    ts_memory mem;
    mem.vertex_no=no_vertices;
    mem.ncmax[0]=ncmax1;
    mem.ncmax[1]=ncmax2;
    mem.ncmax[2]=ncmax3;
   init_memory_block(&mem);
    ts_vesicle *vesicle=init_vesicle(no_vertices,ncmax1,ncmax2,ncmax3,stepsize);
//TODO: debugging only. Please remove ASAP!
   vesicle->bending_rigidity=25.0;
    vesicle->nshell=nshell;
    retval = vtx_set_global_values(vesicle);
    retval = pentagonal_dipyramid_vertex_distribution(vesicle->vlist);