2013-03-19 21:35:32 +01:00
|
|
|
# Created by: thierry@pompo.net
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fvm
|
2012-07-07 17:15:56 +02:00
|
|
|
PORTVERSION= 0.15.3
|
2014-03-27 00:29:28 +01:00
|
|
|
PORTREVISION= 4
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
CATEGORIES= science parallel
|
2012-07-07 17:15:56 +02:00
|
|
|
MASTER_SITES= http://research.edf.com/fichiers/fckeditor/Commun/Innovation/logiciels/code_saturne/Releases/
|
2008-05-01 00:14:12 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Code_Saturne Finite Volume Mesh
|
|
|
|
|
2012-07-07 17:15:56 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2014-03-27 00:29:28 +01:00
|
|
|
LIB_DEPENDS= libmed.so:${PORTSDIR}/french/med \
|
|
|
|
libbft.so:${PORTSDIR}/science/bft \
|
|
|
|
libhdf5.so.7:${PORTSDIR}/science/hdf5-18\
|
|
|
|
libcgns.so:${PORTSDIR}/science/cgnslib
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
|
2008-05-01 00:14:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
|
2014-03-10 18:01:36 +01:00
|
|
|
USES= zip
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-05-01 00:14:12 +02:00
|
|
|
CONFIGURE_ARGS= --with-bft=${LOCALBASE} \
|
|
|
|
--with-hdf5=${LOCALBASE} \
|
|
|
|
--with-cgns=${LOCALBASE} \
|
|
|
|
--with-med=${LOCALBASE}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
CONFIGURE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
.if defined(WITH_LAM)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/liblam.a:${PORTSDIR}/net/lam
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/lamboot:${PORTSDIR}/net/lam
|
2008-05-01 00:14:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mpi=${LOCALBASE}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
.elif defined(WITH_OPENMPI)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
|
2008-05-01 00:14:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mpi=${LOCALBASE}/mpi/openmpi
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
.else
|
2009-11-28 11:44:56 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
|
|
|
|
CONFIGURE_ARGS+= --with-mpi=${LOCALBASE}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
|
|
|
|
2008-01-01 17:45:36 +01:00
|
|
|
TESTSBIN= fvm_file_test fvm_interface_test fvm_selector_postfix_test fvm_selector_test
|
|
|
|
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
pre-configure:
|
2010-11-14 23:00:23 +01:00
|
|
|
${REINPLACE_CMD} -e 's|-lmpich|-lmpich -lmpl|' \
|
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
# No useful doc there
|
|
|
|
${REINPLACE_CMD} -e 's|tests doc|tests|' ${WRKSRC}/Makefile.in
|
|
|
|
|
2008-01-01 17:45:36 +01:00
|
|
|
regression-test:
|
|
|
|
.for pg in ${TESTSBIN}
|
2008-05-01 00:14:12 +02:00
|
|
|
(cd ${WRKSRC}/tests; ./${pg})
|
2008-01-01 17:45:36 +01:00
|
|
|
.endfor
|
|
|
|
|
Code_Saturne is EDF's general purpose computational fluid dynamics
software. Developed since 1997 at EDF R&D, it is based on a co-located
Finite Volume approach that accepts meshes with any type of
cell (tetrahedral, hexahedral, prismatic, pyramidal, polyhedral, ...)
and any type of grid structure (unstructured, blockstructured, hybrid,
conforming or with hanging nodes, ...).
Its basic capabilities enable the handling of either incompressible or
expandable flows with or without heat transfer and turbulence (mixing
length, 2-equation models, v2f, Reynolds stress models, Large Eddy
Simulations, ...).
<http://rd.edf.com/code_saturne/>
2007-06-17 23:04:54 +02:00
|
|
|
.include <bsd.port.mk>
|