:78 Function create_function() is deprecated [8192]

Cleaned up

Ramses van Zon [2016-09-27 14:06:22]
Cleaned up
Filename
Makefile
cells.c
forces.c
global.c
diff --git a/Makefile b/Makefile
index 9101917..705bdfa 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ LDLIBS=-lm

 APPNAME=serdy

-OBJFILES=$(APPNAME).o lcg.o lattice.o inifile.o system.o global.o estimates.o forces.o cells.o ndmalloc/ndmalloc.o elapsed.o
+OBJFILES=$(APPNAME).o lcg.o lattice.o inifile.o system.o estimates.o forces.o cells.o ndmalloc/ndmalloc.o elapsed.o

 TESTOUTFILES=testserdy*.out

@@ -17,7 +17,7 @@ all: $(APPNAME)

 .PHONY: clean test

-$(APPNAME): $(APPNAME).o lcg.o lattice.o system.o inifile.o global.o estimates.o forces.o cells.o ndmalloc/ndmalloc.o
+$(APPNAME): $(APPNAME).o lcg.o lattice.o system.o inifile.o estimates.o forces.o cells.o ndmalloc/ndmalloc.o

 $(APPNAME).o: $(APPNAME).c lattice.h atom.h system.h inifile.h global.h estimates.h forces.h cells.h

@@ -27,7 +27,6 @@ ndmalloc/ndmalloc.o: ndmalloc/ndmalloc.c ndmalloc/ndmalloc.h
 cells.o: cells.c cells.h atom.h system.h forces.h global.h debug.h
 estimates.o: estimates.c global.h estimates.h
 forces.o: forces.c forces.h global.h atom.h
-global.o: global.c global.h
 inifile.o: inifile.c inifile.h
 lattice.o: lattice.c lattice.h
 lcg.o: lcg.c lcg.h
diff --git a/cells.c b/cells.c
index 4595db7..3bba13e 100644
--- a/cells.c
+++ b/cells.c
@@ -1,6 +1,6 @@
 #include "cells.h"
-#include "global.h"
-#include "debug.h"
+#include <assert.h>
+#include <stdlib.h>

 static int order_by_atom_super_cell(const void * x1, const void *x2)
 {
diff --git a/forces.c b/forces.c
index d265309..d6509be 100644
--- a/forces.c
+++ b/forces.c
@@ -1,8 +1,7 @@
 #include "forces.h"
-#include <ndmalloc.h>
-#include <omp.h>
 #include <assert.h>
 #include <math.h>
+#include "ndmalloc.h"

 void interaction_pairs_alloc(interaction_pairs_t* p, long long Npairsmax)
 {
diff --git a/global.c b/global.c
deleted file mode 100644
index b63c3d6..0000000
--- a/global.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "global.h"
-int global_size = 1;
-int global_rank = 0;
ViewGit