Trisurf Monte Carlo simulator
Samo Penic
2020-04-09 4f5ffcfd5ba38b6b7dd6d3b15de8bb8677537b9f
Commiting old changes
5 files modified
17 ■■■■ changed files
src/Makefile.am 8 ●●●●● patch | view | raw | blame | history
src/initial_distribution.c 2 ●●● patch | view | raw | blame | history
src/io.c 1 ●●●● patch | view | raw | blame | history
src/main.c 4 ●●● patch | view | raw | blame | history
src/restore.c 2 ●●●●● patch | view | raw | blame | history
src/Makefile.am
@@ -1,9 +1,10 @@
bin_PROGRAMS = trisurf
trisurf_SOURCES = main.c
trisurf_SOURCES = main.c general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c frame.c energy.c timestep.c vertexmove.c bondflip.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c cluster.c b64zlib_compression.c
GITVERSION:=$(shell git --no-pager describe --tags --always --dirty)
AM_CFLAGS = -Wall -Werror -DTS_VERSION=\"$(GITVERSION)\" -fgnu89-inline -Wno-error=date-time
trisurf_CFLAGS = -Wall -Werror -DTS_VERSION=\"$(GITVERSION)\" -fgnu89-inline -Wno-error=date-time $(AM_CFLAGS)
AM_CPPFLAGS = ${libxml2_CFLAGS} -fgnu89-inline
trisurf_LDADD = libtrisurf.la ${libcurl_LIBS} ${libxml2_LIBS}
#trisurf_LDADD = libtrisurf.la ${libcurl_LIBS} ${libxml2_LIBS}
trisurf_LDADD = ${libcurl_LIBS} ${libxml2_LIBS}
#tsmeasure_SOURCES = tsmeasure.c 
#tsmeasure_LDADD = libtrisurf.la ${libcurl_LIBS} ${libxml2_LIBS}
@@ -17,4 +18,5 @@
libtrisurf_la_SOURCES= general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c frame.c energy.c timestep.c vertexmove.c bondflip.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c cluster.c b64zlib_compression.c
#libtrisurf_la_CPPFLAGS = ${libxml2_CFLAGS}
libtrisurf_la_LIBADD=${libxml2_LIBS}
AM_CFLAGS= -DTS_VERSION=\"$(GITVERSION)\"
pkginclude_HEADERS=general.h vertex.h bond.h triangle.h cell.h vesicle.h initial_distribution.h io.h frame.h energy.h timestep.h vertexmove.h bondflip.h poly.h stats.h sh.h shcomplex.h constvol.h snapshot.h restore.h cluster.h b64zlib_compression.h
src/initial_distribution.c
@@ -46,7 +46,7 @@
    vesicle->clist->dmin_interspecies = tape->dmin_interspecies*tape->dmin_interspecies;
    vesicle->poly_list=init_poly_list(tape->npoly,tape->nmono, vesicle->vlist, vesicle);
    set_vesicle_values_from_tape(vesicle);
        initial_population_with_c0(vesicle,tape);
    initial_population_with_c0(vesicle,tape);
    return vesicle;
}
src/io.c
@@ -245,6 +245,7 @@
    if(vesicle->filament_list!=NULL){
        if(vesicle->filament_list->poly[0]!=NULL){
        filno=vesicle->filament_list->n;
        fprintf(stderr,"WAS HERE AND I SHOULDNT BE\n");
        fonono=vesicle->filament_list->poly[0]->vlist->n;
        fil=1;
        }
src/main.c
@@ -47,7 +47,9 @@
        ts_fprintf(stdout,"**** Restoring vesicle from VTK points list ****\n");
        ts_fprintf(stdout,"************************************************\n\n");
        vesicle = parseDump(command_line_args.dump_from_vtk);
//        write_vertex_xml_file(vesicle,9999); // here you can test if restoration and rewritting results in the same dump file. Only the date od creation of dump file must differ.
        write_vertex_xml_file(vesicle,9999, NULL); // here you can test if restoration and rewritting results in the same dump file. Only the date od creation of dump file must differ.
        printf("Dumped 9999 and exit\n");
        exit(12);
        tape = vesicle->tape;
        int arguments_no;
        FILE *fd=fopen(".status","r");
src/restore.c
@@ -416,6 +416,7 @@
                //idx++;
            }
            xmlFree(points);
            free(coords);
        }
        child=child->next;
    }
@@ -461,6 +462,7 @@
                }
            }
            xmlFree(bonds);
            free(conn);
        }
        xmlFree(conname);
        child=child->next;