From a0f0a3ac3363a9cc058e1de3f64dac2598d9c787 Mon Sep 17 00:00:00 2001 From: Samo <samo@beti.(none)> Date: Tue, 10 Jul 2012 07:37:45 +0000 Subject: [PATCH] Added source for fast-forward sh --- src/vertex.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/vertex.c b/src/vertex.c index 4a6aeb9..21ad48e 100644 --- a/src/vertex.c +++ b/src/vertex.c @@ -23,6 +23,17 @@ for(i=0;i<N;i++) { vlist->vtx[i]=(ts_vertex *)calloc(1,sizeof(ts_vertex)); vlist->vtx[i]->idx=i; + + /* initialize Ylm for spherical hamonics DONE in sh.c */ +/* for(i=0;i<l;i++){ + vlist->vtx[i]->Ylm[i]=(ts_double **)calloc(2*i+1,sizeof(ts_double *)); + for(j=0;j<(2*i+1);j++){ + clist->vtx[i]->Ylm[i][j]=(ts_double *)calloc(sizeof(ts_double)); + } + } +*/ + + } vlist->n=N; return vlist; @@ -131,7 +142,6 @@ if(vtx->neigh!=NULL) free(vtx->neigh); if(vtx->tristar!=NULL) free(vtx->tristar); if(vtx->bond!=NULL) free(vtx->bond); - free(vtx); return TS_SUCCESS; } -- Gitblit v1.9.3