From 2f74e41cf5706334fcde64ae0e86a33c4fef884f Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sat, 28 May 2016 21:13:20 +0000
Subject: [PATCH] A small fix. If a continuation of simulation with a starting snapshot is requested, the last known vtk from the directory is used as a snapshot.

---
 src/snapshot.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/snapshot.h b/src/snapshot.h
index 4c7b528..e4642e9 100644
--- a/src/snapshot.h
+++ b/src/snapshot.h
@@ -1,3 +1,4 @@
+/* vim: set ts=4 sts=4 sw=4 noet : */
 #ifndef _H_SNAPSHOT
 #define _H_SNAPSHOT
 
@@ -8,7 +9,7 @@
 	ts_uint beg;
 } ts_string;
 
-#define COMPRESSION
+//#define COMPRESSION
 
 ts_bool xml_trisurf_data(FILE *fh, ts_vesicle *vesicle);
 ts_bool xml_trisurf_header(FILE *fh, ts_vesicle *vesicle);
@@ -17,4 +18,11 @@
 ts_bool xml_trisurf_tria_neigh(ts_string *data, ts_triangle_list *tlist);
 ts_bool xml_trisurf_vtx_neigh(ts_string *data, ts_vertex_list *vlist);
 ts_bool xml_trisurf_vtx_tristar(ts_string *data, ts_vertex_list *vlist);
+
+/* UTILITIES */
+char *base64_encode(const unsigned char *data, size_t input_length, size_t *output_length);
+unsigned char *base64_decode(const char *data, size_t input_length, size_t *output_length);
+void build_decoding_table();
+void base64_cleanup();
+ts_uint ts_compress_string64(char *data, ts_uint data_len, char **compressed);
 #endif

--
Gitblit v1.9.3