Date: Mon, 12 Nov 2018 03:02:28 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> 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 Message-ID: <201811120302.wAC32SCI009647@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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 <stdio.h> + #include <stdint.h> + #include <sys/time.h> +-#include <mpi.h> ++#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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811120302.wAC32SCI009647>