Trisurf Monte Carlo simulator
Samo Penic
2019-10-19 4ca00dc38c72f67dc714fbb45b3006afec097c9c
src/snapshot.c
@@ -37,12 +37,12 @@
   xml_trisurf_nucleus(data,vesicle);
   xml_trisurf_constvolarea(data,V0,A0);
//#ifdef COMPRESSION
   char *compressed;
   ts_uint nbytes=ts_compress_string64(data->string, data->beg-1, &compressed); //suppress null character at the end with by substracting 1
   fwrite(compressed, sizeof(unsigned char), nbytes, fh);
   free (compressed);
//   char *compressed;
//   ts_uint nbytes=ts_compress_string64(data->string, data->beg-1, &compressed); //suppress null character at the end with by substracting 1
//   fwrite(compressed, sizeof(unsigned char), nbytes, fh);
//   free (compressed);
//#else
//   fprintf(fh,"%s", data->string);
   fprintf(fh,"%s", data->string);
//#endif
   free(data->string);  /* TODO: valgrind is not ok with this! */
   free(data);