From acc29ff2661087c7759cce30d2b0d59c367ea592 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 22 Mar 2016 13:44:55 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14778 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/h5md/src/ch5md.c | 11 +++++++---- lib/poems/Makefile.g++ | 4 +--- lib/poems/Makefile.icc | 4 +--- lib/poems/Makefile.mingw32-cross | 5 +---- lib/poems/Makefile.mingw64-cross | 5 +---- lib/poems/system.cpp | 4 ++-- 6 files changed, 13 insertions(+), 20 deletions(-) diff --git a/lib/h5md/src/ch5md.c b/lib/h5md/src/ch5md.c index ec1095a2d1..a9ad879ffa 100644 --- a/lib/h5md/src/ch5md.c +++ b/lib/h5md/src/ch5md.c @@ -131,7 +131,8 @@ hid_t h5md_open_file (const char *filename) h5md_particles_group h5md_create_particles_group(h5md_file file, const char *name) { h5md_particles_group group; - + + memset(&group,0,sizeof(group)); group.group = H5Gcreate(file.particles, name, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); return group; @@ -140,7 +141,7 @@ h5md_particles_group h5md_create_particles_group(h5md_file file, const char *nam hid_t h5md_open_particles_group(hid_t particles, const char *name) { hid_t group; - + group = H5Gopen(particles, name, H5P_DEFAULT); return group; @@ -156,6 +157,7 @@ h5md_element h5md_create_time_data(hid_t loc, const char *name, int rank, int in int i; + memset(&td,0,sizeof(td)); dims[0] = 0 ; max_dims[0] = H5S_UNLIMITED ; for (i=0; i $@ # ------ DEPENDENCIES ------ -DEPENDS = $(OBJ:.o=.d) +include .depend # ------ CLEAN ------ diff --git a/lib/poems/Makefile.icc b/lib/poems/Makefile.icc index 8431f9b35c..49878d0ac8 100644 --- a/lib/poems/Makefile.icc +++ b/lib/poems/Makefile.icc @@ -87,12 +87,10 @@ lib: $(OBJ) %.o:%.cpp $(CC) $(CCFLAGS) -c $< -%.d:%.cpp - $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@ # ------ DEPENDENCIES ------ -DEPENDS = $(OBJ:.o=.d) +include .depend # ------ CLEAN ------ diff --git a/lib/poems/Makefile.mingw32-cross b/lib/poems/Makefile.mingw32-cross index 3a32f05955..17e81b51f0 100644 --- a/lib/poems/Makefile.mingw32-cross +++ b/lib/poems/Makefile.mingw32-cross @@ -97,12 +97,9 @@ $(LIB): $(OBJ) $(DIR)%.o:%.cpp $(CC) $(CCFLAGS) -c $< -o $@ -$(DIR)%.d:%.cpp - $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@ - # ------ DEPENDENCIES ------ -DEPENDS = $(OBJ:.o=.d) +include .depend # ------ CLEAN ------ diff --git a/lib/poems/Makefile.mingw64-cross b/lib/poems/Makefile.mingw64-cross index 4fcbe1d23a..2df43dea94 100644 --- a/lib/poems/Makefile.mingw64-cross +++ b/lib/poems/Makefile.mingw64-cross @@ -97,12 +97,9 @@ $(LIB): $(OBJ) $(DIR)%.o:%.cpp $(CC) $(CCFLAGS) -c $< -o $@ -$(DIR)%.d:%.cpp - $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@ - # ------ DEPENDENCIES ------ -DEPENDS = $(OBJ:.o=.d) +include .depend # ------ CLEAN ------ diff --git a/lib/poems/system.cpp b/lib/poems/system.cpp index 25e84c2b8c..c12d870269 100644 --- a/lib/poems/system.cpp +++ b/lib/poems/system.cpp @@ -378,8 +378,8 @@ void System::Create_DegenerateSystem(int& nfree, int*freelist, double *&masstota delete [] xh1[i]; delete [] xh2[i]; } - delete xh1; - delete xh2; + delete [] xh1; + delete [] xh2; }