ports/60836: New port: math/nsc2ke, a Navier-Stokes solver.
Thierry Thomas
thierry at pompo.net
Fri Jan 2 21:10:28 UTC 2004
>Number: 60836
>Category: ports
>Synopsis: New port: math/nsc2ke, a Navier-Stokes solver.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 02 13:10:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Thierry Thomas
>Release: FreeBSD 5.2-RC i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.2-RC FreeBSD 5.2-RC #0: Fri Jan 2 18:13:49 CET 2004 thierry at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040102 i386
>Description:
An add-on for the ports math/bamg and math/emc2 (submitted in
separate PRs).
>How-To-Repeat:
N/A.
>Fix:
Please execute the following shar file:
--- nsc2ke.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# math/nsc2ke
# math/nsc2ke/files
# math/nsc2ke/files/patch-makefile
# math/nsc2ke/Makefile
# math/nsc2ke/distinfo
# math/nsc2ke/pkg-descr
# math/nsc2ke/pkg-plist
# math/nsc2ke/pkg-message
#
echo c - math/nsc2ke
mkdir -p math/nsc2ke > /dev/null 2>&1
echo c - math/nsc2ke/files
mkdir -p math/nsc2ke/files > /dev/null 2>&1
echo x - math/nsc2ke/files/patch-makefile
sed 's/^X//' >math/nsc2ke/files/patch-makefile << 'END-of-math/nsc2ke/files/patch-makefile'
X--- makefile.orig Tue Feb 7 14:00:19 1995
X+++ makefile Thu Jan 1 21:40:26 2004
X@@ -1,6 +1,4 @@
X-F77=f77
X-LINK=f77 -O
X-FLAGS=-c -O
X+# $FreeBSD$
X
X OBJS=nsc2ke.o config.o mailla.o aires.o seg2d.o\
X clhaut.o init.o calprc.o result.o fluosh.o flucin.o\
X@@ -9,7 +7,7 @@
X loglaw.o isovat.o gravity.o
X
X .f.o:
X- $(F77) $(FLAGS) $*.f
X+ $(F77) -c $(FFLAGS) $*.f
X
X NSC2KE:$(OBJS)
X- $(LINK) $(OBJS) -o NSC2KE
X+ $(F77) $(FFLAGS) $(OBJS) -o NSC2KE
END-of-math/nsc2ke/files/patch-makefile
echo x - math/nsc2ke/Makefile
sed 's/^X//' >math/nsc2ke/Makefile << 'END-of-math/nsc2ke/Makefile'
X# New ports collection makefile for: nsc2ke
X# Date created: 16 December 2003
X# Whom: thierry at pompo.net
X#
X# $FreeBSD$
X#
X
XPORTNAME= nsc2ke
XPORTVERSION= 1.0
XCATEGORIES= math science
XMASTER_SITES= http://www-rocq1.inria.fr/gamma/cdrom/ftp/nsc2ke/
XDISTNAME= ${PORTNAME}
X.if !defined(NOPORTDOCS)
XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} nsc2ke.ps.gz
XEXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
X.endif
X
XMAINTAINER= ports at FreeBSD.org
XCOMMENT= A Navier-Stokes solver
X
XRESTRICTED= No resale, contact author for commercial usage
X
XF77?= f77
XFFLAGS?= -O2 # Note: FFLAGS is set to -O in /usr/share/mk/sys.mk
X
XWRKSRC= ${WRKDIR}
X
XMAKEFILE= makefile
XALL_TARGET= NSC2KE
XMAKE_ENV= F77="${F77}" FFLAGS="${FFLAGS}"
X
XEXEMPLES= DATA MESH gnu.data
XTESTDIR?= /tmp/testnsc2ke
X
Xdo-install:
X @${INSTALL_PROGRAM} ${WRKSRC}/NSC2KE ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/READ_ME ${DOCSDIR}
X @${INSTALL_DATA} ${DISTDIR}/nsc2ke.ps.gz ${DOCSDIR}
X @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X @${MKDIR} ${EXAMPLESDIR}
X.for fich in ${EXEMPLES}
X @${INSTALL_DATA} ${WRKSRC}/${fich} ${EXAMPLESDIR}
X.endfor
X @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
X.endif
X
Xpost-install:
X @${ECHO}
X @${CAT} ${PKGMESSAGE}
X @${ECHO}
X
X.if defined(MAINTAINER_MODE)
Xtest: install
X ${MKDIR} ${TESTDIR}
X.for fich in ${EXEMPLES}
X ${INSTALL_DATA} ${WRKSRC}/${fich} ${TESTDIR}
X.endfor
X (cd ${TESTDIR}; \
X NSC2KE; \
X gnuplot < gnu.data)
X.endif
X
X.include <bsd.port.mk>
END-of-math/nsc2ke/Makefile
echo x - math/nsc2ke/distinfo
sed 's/^X//' >math/nsc2ke/distinfo << 'END-of-math/nsc2ke/distinfo'
XMD5 (nsc2ke.tar.gz) = 4a7e7739fd50fe7493a6ef909c621503
XMD5 (nsc2ke.ps.gz) = 4302ec130267d2391f27be3855a015c9
END-of-math/nsc2ke/distinfo
echo x - math/nsc2ke/pkg-descr
sed 's/^X//' >math/nsc2ke/pkg-descr << 'END-of-math/nsc2ke/pkg-descr'
XNSC2KE is a Finite-Volume Galerkin program computing 2D and axisymmetric
Xflows on unstructured meshes.
X
XSuggested add-on: the ports math/bamg or math/emc2.
X
XWWW: http://www-rocq1.inria.fr/gamma/cdrom/www/nsc2ke/eng.htm
END-of-math/nsc2ke/pkg-descr
echo x - math/nsc2ke/pkg-plist
sed 's/^X//' >math/nsc2ke/pkg-plist << 'END-of-math/nsc2ke/pkg-plist'
Xbin/NSC2KE
X%%PORTDOCS%%%%DOCSDIR%%/READ_ME
X%%PORTDOCS%%%%DOCSDIR%%/nsc2ke.ps.gz
X%%PORTDOCS%%%%EXAMPLESDIR%%/DATA
X%%PORTDOCS%%%%EXAMPLESDIR%%/MESH
X%%PORTDOCS%%%%EXAMPLESDIR%%/gnu.data
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-math/nsc2ke/pkg-plist
echo x - math/nsc2ke/pkg-message
sed 's/^X//' >math/nsc2ke/pkg-message << 'END-of-math/nsc2ke/pkg-message'
XThe names of the input and output files are hard-coded. You must have:
X
X- the computation configuration (Mach, Reynolds,...) in file a 'DATA';
X
X- the mesh in a file 'MESH'.
X
XPut these files in a working directory (see the examples), cd to this
Xdirectory, and run NSC2KE. The example gnu.data shows you how to visualize
Xthe results by typing 'gnuplot < gnu.data'.
END-of-math/nsc2ke/pkg-message
exit
--- nsc2ke.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list