From 06afc729f9061c1cfa14c78728d61d518324c2f0 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 04 May 2022 05:46:43 +0000 Subject: [PATCH] Moved all global variables to separate file and defined extern keyword where appropriate --- src/general.h | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/general.h b/src/general.h index c530a68..2f15c50 100644 --- a/src/general.h +++ b/src/general.h @@ -158,6 +158,7 @@ ts_double solAngle; struct ts_poly *grafted_poly; struct ts_cluster *cluster; + ts_double direct_interaction_force; }; typedef struct ts_vertex ts_vertex; @@ -195,11 +196,13 @@ ts_double znorm; ts_double area; // firstly needed for sh.c ts_double volume; // firstly needed for sh.c + ts_double energy; }; typedef struct ts_triangle ts_triangle; struct ts_triangle_list{ ts_uint n; + ts_double a0; ts_triangle **tria; }; typedef struct ts_triangle_list ts_triangle_list; @@ -217,7 +220,7 @@ ts_cell **cell; ts_double dcell; ts_double shift; - ts_double max_occupancy; + ts_uint max_occupancy; ts_double dmin_interspecies; } ts_cell_list; @@ -273,6 +276,8 @@ long int pswitch; long int constvolswitch; long int constareaswitch; + long int stretchswitch; + ts_double xkA0; ts_double constvolprecision; char *multiprocessing; long int brezveze0; @@ -347,14 +352,6 @@ ts_cluster **cluster; } ts_cluster_list; - -/* GLOBAL VARIABLES */ - -int quiet; -ts_double V0; -ts_double A0; -ts_double epsvol; -ts_double epsarea; /* FUNCTIONS */ /** Non-fatal error function handler: -- Gitblit v1.9.3