From owner-svn-ports-head@freebsd.org Mon Nov 12 03:02:44 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2911112E7B6; Mon, 12 Nov 2018 03:02:43 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4BE47AD6B; Mon, 12 Nov 2018 03:02:29 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A72411B193; Mon, 12 Nov 2018 03:02:29 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAC32TQS009652; Mon, 12 Nov 2018 03:02:29 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAC32SCI009647; Mon, 12 Nov 2018 03:02:28 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201811120302.wAC32SCI009647@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Mon, 12 Nov 2018 03:02:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r484789 - in head/science: . sparta sparta/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/science: . sparta sparta/files X-SVN-Commit-Revision: 484789 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C4BE47AD6B X-Spamd-Result: default: False [-103.04 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-0.93)[-0.927,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 03:02:44 -0000 Author: yuri Date: Mon Nov 12 03:02:28 2018 New Revision: 484789 URL: https://svnweb.freebsd.org/changeset/ports/484789 Log: New port: science/sparta: Gas simulator: SPARTA DSMC software package Added: head/science/sparta/ head/science/sparta/Makefile (contents, props changed) head/science/sparta/distinfo (contents, props changed) head/science/sparta/files/ head/science/sparta/files/patch-STUBS_mpi.c (contents, props changed) head/science/sparta/pkg-descr (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Sun Nov 11 23:54:06 2018 (r484788) +++ head/science/Makefile Mon Nov 12 03:02:28 2018 (r484789) @@ -281,6 +281,7 @@ SUBDIR += simint SUBDIR += simlib SUBDIR += simsmith + SUBDIR += sparta SUBDIR += spglib SUBDIR += step SUBDIR += step-kde4 Added: head/science/sparta/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/sparta/Makefile Mon Nov 12 03:02:28 2018 (r484789) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= sparta +PORTVERSION= ${GH_TAGNAME:C/([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\3.\2.\1/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/} +CATEGORIES= science +PKGNAMESUFFIX= -dsmc # Direct Simulation Monte Carlo + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Gas simulator: SPARTA DSMC software package + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/../LICENSE + +BUILD_DEPENDS= bash:shells/bash + +USES= gmake localbase +USE_GITHUB= yes +GH_TAGNAME= 29Oct2018 + +CXXFLAGS+= -DSPARTA_UNORDERED_MAP + +WRKSRC_SUBDIR= src +MAKE_ARGS= CC=${CXX} CCFLAGS="${CXXFLAGS}" LINK=${CXX} LINKFLAGS="${LDFLAGS}" mode=exe + +OPTIONS_SINGLE= PARALLEL +OPTIONS_SINGLE_PARALLEL= SERIAL MPI +OPTIONS_DEFAULT= MPI +PARALLEL_DESC= Parallelization + +SERIAL_DESC= Serial: no parallelization +SERIAL_ALL_TARGET= serial +SERIAL_PLIST_FILES= bin/spa_serial + +MPI_ALL_TARGET= mpi +MPI_PLIST_FILES= bin/spa_mpi +MPI_CXXFLAGS= -I${LOCALBASE}/mpi/openmpi/include +MPI_LDFLAGS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so -Wl,-rpath=${LOCALBASE}/mpi/openmpi/lib +MPI_LIB_DEPENDS= libmpi.so:net/openmpi + +post-patch: + @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/spa_* ${STAGEDIR}${PREFIX}/bin/ + +.include Added: head/science/sparta/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/sparta/distinfo Mon Nov 12 03:02:28 2018 (r484789) @@ -0,0 +1,3 @@ +TIMESTAMP = 1541984571 +SHA256 (sparta-sparta-2018.10.29-29Oct2018_GH0.tar.gz) = 769461c0538727ee06bef72762c49eb496c4f8dd8d33adcb4e9e85bd4bca8496 +SIZE (sparta-sparta-2018.10.29-29Oct2018_GH0.tar.gz) = 19956946 Added: head/science/sparta/files/patch-STUBS_mpi.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/sparta/files/patch-STUBS_mpi.c Mon Nov 12 03:02:28 2018 (r484789) @@ -0,0 +1,11 @@ +--- STUBS/mpi.c.orig 2018-11-12 01:31:19 UTC ++++ STUBS/mpi.c +@@ -20,7 +20,7 @@ + #include + #include + #include +-#include ++#include "mpi.h" + + /* data structure for double/int */ + Added: head/science/sparta/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/sparta/pkg-descr Mon Nov 12 03:02:28 2018 (r484789) @@ -0,0 +1,15 @@ +SPARTA is a parallel DSMC code for performing simulations of low-density gases +in 2D or 3D. Particles advect through a hierarchical Cartesian grid that +overlays the simulation box. The grid is used to group particles by grid cell +for purposes of performing collisions and chemistry. Physical objects with +triangulated surfaces can be embedded in the grid, creating cut and split grid +cells. The grid is also used to efficiently find particle/surface collisions. + +SPARTA runs on single processors or in parallel using message-passing techniques +and a spatial-decomposition of the simulation domain. The code is designed to be +easy to modify or extend with new functionality. + +SPARTA was developed at Sandia National Laboratories, a US Department of Energy +(DOE) laboratory. + +WWW: https://sparta.sandia.gov/