1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

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>
This commit is contained in:
Nicola Vitale 2010-12-15 16:48:09 +00:00
parent 926aa575bc
commit 36d8a857f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266353
10 changed files with 153 additions and 0 deletions

View File

@ -425,6 +425,7 @@
SUBDIR += p5-bignum
SUBDIR += pari
SUBDIR += parmetis
SUBDIR += parmgridgen
SUBDIR += pear-Math_Combinatorics
SUBDIR += pecl-big_int
SUBDIR += pecl-bitset

41
math/parmgridgen/Makefile Normal file
View File

@ -0,0 +1,41 @@
# New ports collection makefile for: math/parmgirdgen
# Date created: 22 Nov 2010
# Whom: Stas Timokhin <devel@stasyan.com>
#
# $FreeBSD$
#
PORTNAME= parmgridgen
PORTVERSION= 1.0
CATEGORIES= math science
MASTER_SITES= http://www.mgnet.org/mgnet/Codes/parmgridgen/
DISTNAME= ParMGridGen-${PORTVERSION}
MAINTAINER= devel@stasyan.com
COMMENT= Library for obtaining a sequence of successive coarse grids
ALL_TARGET= parallel
LIB_DEPENDS+= mpi.0:${PORTSDIR}/net/openmpi
USE_GMAKE= yes
post-patch:
#respect CFLAGS
. for f in IMlib Lib Programs
@${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/MGridGen/${f}/Makefile
. endfor
. for f in IMParMetis-2.0 ParLib Programs
@${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/ParMGridGen/${f}/Makefile
. endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mgridgen ${PREFIX}/bin/mgridgen
${INSTALL_PROGRAM} ${WRKSRC}/parmgridgen ${PREFIX}/bin/parmgridgen
${INSTALL_PROGRAM} ${WRKSRC}/libmgrid.a ${PREFIX}/lib/libmgrid.a
${INSTALL_PROGRAM} ${WRKSRC}/libparmgrid.a ${PREFIX}/lib/libparmgrid.a
${INSTALL_DATA} ${WRKSRC}/mgridgen.h ${PREFIX}/include/mgridgen.h
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (ParMGridGen-1.0.tar.gz) = 62cdb6e48cfc59124e5d5d360c2841e0fc2feecafe65bda110b74e942740b395
SIZE (ParMGridGen-1.0.tar.gz) = 2623528

View File

@ -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
/*************************************************************************

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1,9 @@
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

View File

@ -0,0 +1,7 @@
bin/mgridgen
bin/parmgridgen
lib/libmgrid.a
lib/libparmgrid.a
include/mgridgen.h
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%