summaryrefslogtreecommitdiff
path: root/math/parmgridgen/files
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2010-12-15 16:48:09 +0000
committerNicola Vitale <nivit@FreeBSD.org>2010-12-15 16:48:09 +0000
commit36d8a857f9b19cf3b5fa563debfb87670ea2ec22 (patch)
treef5e978bbb077934886ad60b9d7c22de36eb26360 /math/parmgridgen/files
parent- Support tcl/tk 8.5 (diff)
ParMGridGen-1.0 is a highly optimized serial and parallel library
for obtaining a sequence of successive coarse grids that are well suited for geometric multigrid methods. The quality of the elements of the coarse grids is optimized using a multilevel framework. The parallel library is based on MPI and is portable to a wide range of architectures. WWW: http://www.mgnet.org/mgnet-codes-parmgridgen.html PR: ports/152506 Submitted by: Stas Timokhin <devel at stasyan.com>
Diffstat (limited to 'math/parmgridgen/files')
-rw-r--r--math/parmgridgen/files/patch-MGridGen_IMlib_IMlib.h11
-rw-r--r--math/parmgridgen/files/patch-MGridGen_Lib_mgridgen.h11
-rw-r--r--math/parmgridgen/files/patch-Makefile.in49
-rw-r--r--math/parmgridgen/files/patch-ParMGridGen_IMParMetis_ParMETISLib_parmetis.h11
-rw-r--r--math/parmgridgen/files/patch-ParMGridGen_ParLib_parmgridgen.h11
5 files changed, 93 insertions, 0 deletions
diff --git a/math/parmgridgen/files/patch-MGridGen_IMlib_IMlib.h b/math/parmgridgen/files/patch-MGridGen_IMlib_IMlib.h
new file mode 100644
index 000000000000..576bd5bd5204
--- /dev/null
+++ b/math/parmgridgen/files/patch-MGridGen_IMlib_IMlib.h
@@ -0,0 +1,11 @@
+--- MGridGen/IMlib/IMlib.h.orig 2010-02-24 15:22:46.000000000 +0600
++++ MGridGen/IMlib/IMlib.h 2010-02-24 15:22:57.000000000 +0600
+@@ -43,7 +43,7 @@
+ #ifdef DMALLOC
+ #include <dmalloc.h>
+ #else
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+
+ /*************************************************************************
diff --git a/math/parmgridgen/files/patch-MGridGen_Lib_mgridgen.h b/math/parmgridgen/files/patch-MGridGen_Lib_mgridgen.h
new file mode 100644
index 000000000000..d1e67fdfe945
--- /dev/null
+++ b/math/parmgridgen/files/patch-MGridGen_Lib_mgridgen.h
@@ -0,0 +1,11 @@
+--- MGridGen/Lib/mgridgen.h.orig 2010-02-24 15:30:01.000000000 +0600
++++ MGridGen/Lib/mgridgen.h 2010-02-24 15:30:09.000000000 +0600
+@@ -26,7 +26,7 @@
+ #ifdef DMALLOC
+ #include <dmalloc.h>
+ #else
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+
+ #include "defs.h"
diff --git a/math/parmgridgen/files/patch-Makefile.in b/math/parmgridgen/files/patch-Makefile.in
new file mode 100644
index 000000000000..c5ec96f0048a
--- /dev/null
+++ b/math/parmgridgen/files/patch-Makefile.in
@@ -0,0 +1,49 @@
+--- Makefile.in.orig 2001-12-05 06:30:33.000000000 +0600
++++ Makefile.in 2010-12-15 09:45:04.000000000 +0600
+@@ -9,17 +9,17 @@
+ PARCC = cc
+
+ # What optimization level to use
+-OPTFLAGS = -O3
++OPTFLAGS =
+
+ # What options to be used by the compiler
+-COPTIONS =
++COPTIONS = ${PTHREAD_CFLAGS}
+
+ # Which loader to use
+ LD = cc
+ PARLD = cc
+
+ # What options to be used by the loader
+-LDOPTIONS = -O3
++LDOPTIONS =
+
+ # Where to put the executable
+ BINDIR = ../..
+@@ -29,18 +29,21 @@
+ IMLIBDIR = ../../MGridGen/IMlib
+
+ # Include directories for the compiler
+-INCDIR =
++INCDIR = -I${LOCALBASE}/include \
++ -I${LOCALBASE}/mpi/openmpi/include
+
+ # In which directories to look for any additional libraries
+ LIBDIR = -L../.. \
+- -L/usr/lib32/
++ -L/usr/lib/ \
++ -L/${LOCALBASE}/lib/ \
++ -L/${LOCALBASE}/mpi/openmpi/lib
+
+ # Set some flags
+ DEBUGFLAGS =
+
+ # What additional libraries to link the programs with (eg., -lmpi)
+-LIBS = -lmgrid -lm
+-PARLIBS = -lparmgrid -lmgrid -lmpi -lm
++LIBS = -lmgrid -lm -pthread
++PARLIBS = -lparmgrid -lmgrid -lmpi -lm -pthread
+
+
+ # What archiving to use
diff --git a/math/parmgridgen/files/patch-ParMGridGen_IMParMetis_ParMETISLib_parmetis.h b/math/parmgridgen/files/patch-ParMGridGen_IMParMetis_ParMETISLib_parmetis.h
new file mode 100644
index 000000000000..500fb26a7caf
--- /dev/null
+++ b/math/parmgridgen/files/patch-ParMGridGen_IMParMetis_ParMETISLib_parmetis.h
@@ -0,0 +1,11 @@
+--- ParMGridGen/IMParMetis-2.0/ParMETISLib/parmetis.h.orig 2010-02-24 15:21:20.000000000 +0600
++++ ParMGridGen/IMParMetis-2.0/ParMETISLib/parmetis.h 2010-02-24 15:21:40.000000000 +0600
+@@ -21,7 +21,7 @@
+ #ifdef DMALLOC
+ #include <dmalloc.h>
+ #else
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+
+ #include "rename.h"
diff --git a/math/parmgridgen/files/patch-ParMGridGen_ParLib_parmgridgen.h b/math/parmgridgen/files/patch-ParMGridGen_ParLib_parmgridgen.h
new file mode 100644
index 000000000000..0adafd1ca756
--- /dev/null
+++ b/math/parmgridgen/files/patch-ParMGridGen_ParLib_parmgridgen.h
@@ -0,0 +1,11 @@
+--- ParMGridGen/ParLib/parmgridgen.h.orig 2010-02-24 15:21:58.000000000 +0600
++++ ParMGridGen/ParLib/parmgridgen.h 2010-02-24 15:22:03.000000000 +0600
+@@ -21,7 +21,7 @@
+ #ifdef DMALLOC
+ #include <dmalloc.h>
+ #else
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+
+ #include "IMlib.h"