From f977e8fe32b6a1a2ae85662ab35fd7c9f647cc3e Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Mon, 02 Jul 2018 10:50:58 +0000
Subject: [PATCH] Added a funciton that calculates everything needed for spherical harmonics

---
 src/timestep.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/timestep.c b/src/timestep.c
index 27400e7..c74e3e1 100644
--- a/src/timestep.c
+++ b/src/timestep.c
@@ -62,7 +62,7 @@
 	centermass(vesicle);
 	cell_occupation(vesicle);
 	vesicle_volume(vesicle); //needed for constant volume at this moment
-    vesicle_area(vesicle); //needed for constant area at this moment
+    vesicle_area(vesicle); //needed for constant area and stretching energy at this moment
 	if(V0<0.000001) 
 		V0=vesicle->volume; 
 	ts_fprintf(stdout,"Setting volume V0=%.17f\n",V0);
@@ -92,12 +92,12 @@
 		cell_occupation(vesicle);
             dump_state(vesicle,i);
 		if(i>=inititer){
+			vesicle_volume(vesicle); //calculates just volume. 
+            		vesicle_area(vesicle); //calculates area.
 			write_vertex_xml_file(vesicle,i-inititer,NULL);
 			write_master_xml_file(command_line_args.output_fullfilename);
 			epochtime=get_epoch();			
 			gyration_eigen(vesicle, &l1, &l2, &l3);
-			vesicle_volume(vesicle); //calculates just volume. 
-            vesicle_area(vesicle); //calculates area.
 			r0=getR0(vesicle);
             if(vesicle->sphHarmonics!=NULL){
 			    preparationSh(vesicle,r0);

--
Gitblit v1.9.3