From 074a178761daa61a419ef9c2f38f9cd7adc0cdc7 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Thu, 07 Jun 2012 13:25:08 +0000
Subject: [PATCH] Added sh_init and sh_free for given datastructure.

---
 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