Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2018 05:16:35 +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: r484170 - in head/science: . esys-particle esys-particle/files
Message-ID:  <201811050516.wA55GZ1r019978@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Nov  5 05:16:35 2018
New Revision: 484170
URL: https://svnweb.freebsd.org/changeset/ports/484170

Log:
  New port: science/esys-particle: Particle-based numerical modelling software

Added:
  head/science/esys-particle/
  head/science/esys-particle/Makefile   (contents, props changed)
  head/science/esys-particle/distinfo   (contents, props changed)
  head/science/esys-particle/files/
  head/science/esys-particle/files/patch-CMakeLists.txt   (contents, props changed)
  head/science/esys-particle/files/patch-Geometry_SphAggGougeBlock.hpp   (contents, props changed)
  head/science/esys-particle/files/patch-Tools_StressCalculator_Contact.cpp   (contents, props changed)
  head/science/esys-particle/files/patch-Tools_dump2vtk_frame__vtk.cpp   (contents, props changed)
  head/science/esys-particle/pkg-descr   (contents, props changed)
  head/science/esys-particle/pkg-plist   (contents, props changed)
Modified:
  head/science/Makefile

Modified: head/science/Makefile
==============================================================================
--- head/science/Makefile	Mon Nov  5 04:49:34 2018	(r484169)
+++ head/science/Makefile	Mon Nov  5 05:16:35 2018	(r484170)
@@ -69,6 +69,7 @@
     SUBDIR += epte
     SUBDIR += erd
     SUBDIR += erkale
+    SUBDIR += esys-particle
     SUBDIR += fastcap
     SUBDIR += fasthenry
     SUBDIR += fisicalab

Added: head/science/esys-particle/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/Makefile	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	esys-particle
+DISTVERSION=	2.3.5
+CATEGORIES=	science
+MASTER_SITES=	https://launchpad.net/esys-particle/trunk/${DISTVERSION}/+download/
+DISTNAME=	ESyS-Particle-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Particle-based numerical modelling software
+
+LICENSE=	APACHE20
+
+LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
+		libmpi.so:net/mpich
+
+USES=		cmake:outsource fortran
+USE_LDCONFIG=	yes
+
+LDFLAGS+=	${LOCALBASE}/lib/libboost_filesystem.so
+
+pre-build:
+	@${ECHO} "static int s_bzr_revision=-1;" > ${WRKSRC}/bzrversion.h
+
+.include <bsd.port.mk>

Added: head/science/esys-particle/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/distinfo	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1541392871
+SHA256 (ESyS-Particle-2.3.5.tar.gz) = 97f53fd0056c8f90771e1e2ff91bcea67a419bc68fcd91c68f7df76339680888
+SIZE (ESyS-Particle-2.3.5.tar.gz) = 8197209

Added: head/science/esys-particle/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/files/patch-CMakeLists.txt	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,22 @@
+--- CMakeLists.txt.orig	2017-01-06 06:14:00 UTC
++++ CMakeLists.txt
+@@ -2,8 +2,8 @@ PROJECT(Esys C CXX)
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+ 
+ 
+-FIND_PACKAGE(Boost COMPONENTS system filesystem python thread REQUIRED)
+-INCLUDE(FindPythonLibs)
++FIND_PACKAGE(Boost COMPONENTS system filesystem thread REQUIRED)
++#INCLUDE(FindPythonLibs)
+ 
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Foundation)
+@@ -25,7 +25,7 @@ ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/To
+ ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/ntable")
+ ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/tml")
+ ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/ppa/src")
+-ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/Python")
++#ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/Python")
+ 
+ 
+ ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/Parallel")

Added: head/science/esys-particle/files/patch-Geometry_SphAggGougeBlock.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/files/patch-Geometry_SphAggGougeBlock.hpp	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,11 @@
+--- Geometry/SphAggGougeBlock.hpp.orig	2018-11-05 04:51:07 UTC
++++ Geometry/SphAggGougeBlock.hpp
+@@ -36,7 +36,7 @@ namespace esys {
+     void SphAggGougeBlock::visitParticles(TmplVisitor& visitor) const
+     {
+       GougeBlock3D::visitParticles(visitor);
+-      for(vector<SBG_ptr>::iterator it = m_grainParticleGen.begin();
++      for(auto it = m_grainParticleGen.begin();
+ 	  it != m_grainParticleGen.end();
+ 	  it++)
+ 	{

Added: head/science/esys-particle/files/patch-Tools_StressCalculator_Contact.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/files/patch-Tools_StressCalculator_Contact.cpp	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,11 @@
+--- Tools/StressCalculator/Contact.cpp.orig	2018-11-05 04:44:17 UTC
++++ Tools/StressCalculator/Contact.cpp
+@@ -18,7 +18,7 @@ namespace esys
+   namespace lsm
+   {
+     bool ParticleData::s_is3d = true;
+-    const double ParticleData::FOUR_THIRDS_PI = ((4.0/3.0)*M_PIl);
++    const double ParticleData::FOUR_THIRDS_PI = ((4.0/3.0)*M_PI);
+   }
+ }
+ 

Added: head/science/esys-particle/files/patch-Tools_dump2vtk_frame__vtk.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/files/patch-Tools_dump2vtk_frame__vtk.cpp	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,11 @@
+--- Tools/dump2vtk/frame_vtk.cpp.orig	2018-11-05 04:45:11 UTC
++++ Tools/dump2vtk/frame_vtk.cpp
+@@ -1276,7 +1276,7 @@ void writeMeshFile(const string& infilen
+   string header,skip;
+   int numMeshIG;
+ 
+-  while (datafile >> header != NULL){
++  while (datafile >> header){
+     if (header == "TMIG"){
+       datafile >> numMeshIG;
+       for(int ni=0;ni<numMeshIG;ni++){

Added: head/science/esys-particle/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/pkg-descr	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,9 @@
+ESyS-Particle is Open Source Software for particle-based numerical modelling
+using the Discrete Element Method (DEM); a widely adapted technique for
+modelling processes involving large deformations, granular flow and/or
+fragmentation. ESyS-Particle is best suited for execution on parallel
+supercomputers, clusters or multi-core PCs running a Linux-based operating
+system. The C++ DEM simulation engine implements spatial domain decomposition
+via the Message Passing Interface (MPI). 
+
+WWW: http://www.esys-particle.org/wiki/

Added: head/science/esys-particle/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/esys-particle/pkg-plist	Mon Nov  5 05:16:35 2018	(r484170)
@@ -0,0 +1,19 @@
+bin/dump2geo
+bin/dump2vtk
+bin/fcconv
+bin/fracextract
+bin/grainextract
+bin/raw2tostress
+bin/rotextract
+bin/strainextract
+lib/libFields.so
+lib/libFoundation.so
+lib/libGeometry.so
+lib/libModel.so
+lib/libParallel.so
+lib/libTmlComm.so
+lib/libTmlMessage.so
+lib/libTmlType.so
+lib/liblibppa.so
+lib/libntable.so
+lib/libpis.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811050516.wA55GZ1r019978>