mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
Add fasthenry , a multipole-accelerated inductance analysis program.
PR: ports/93969 Submitted by: Pedro Giffuni <giffunip@asme.org>
This commit is contained in:
parent
838dd9cdaf
commit
7a0ae732aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=157201
@ -19,6 +19,7 @@
|
||||
SUBDIR += dft++
|
||||
SUBDIR += euler
|
||||
SUBDIR += fastcap
|
||||
SUBDIR += fasthenry
|
||||
SUBDIR += felt
|
||||
SUBDIR += flounder
|
||||
SUBDIR += gave
|
||||
|
41
science/fasthenry/Makefile
Normal file
41
science/fasthenry/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# New ports collection makefile for: FastHenry
|
||||
# Date created: 5 Jan 2006
|
||||
# Whom: Pedro Giffuni <giffunip@asme.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= fasthenry
|
||||
DISTVERSION= ${P_VERSION}wr
|
||||
CATEGORIES= science cad
|
||||
MASTER_SITES= ftp://ftp.srware.com/pub/ \
|
||||
http://www.wrcad.com/ftp/pub/
|
||||
|
||||
MAINTAINER= giffunip@asme.org
|
||||
COMMENT= A multipole-accelerated inductance analysis program
|
||||
|
||||
P_VERSION= 3.0
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT= config
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,CFLAGS =, CFLAGS +=,' \
|
||||
${WRKSRC}/src/fasthenry/Makefile.default \
|
||||
${WRKSRC}/src/zbuf/Makefile.default
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bin/fasthenry ${PREFIX}/bin/
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/bin/zbuf ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${CAT} ${WRKSRC}/README ${WRKSRC}/README.mit > ${DOCSDIR}/readme
|
||||
${CAT} ${WRKSRC}/doc/manual_*.ps > ${DOCSDIR}/manual.ps
|
||||
${CAT} ${WRKSRC}/doc/nonuniform_manual_*.ps > ${DOCSDIR}/nonuniform_manual.ps
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/ms_thesis.ps ${DOCSDIR}
|
||||
${GZIP_CMD} ${DOCSDIR}/*
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
science/fasthenry/distinfo
Normal file
3
science/fasthenry/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (fasthenry-3.0wr.tar.gz) = 27eceb7a70bebd2b3bbca2b81534351f
|
||||
SHA256 (fasthenry-3.0wr.tar.gz) = 44941e6e3dcbeeed9dd12467a6aadb6bb9eb06dea3e9967ce3c59447870beb77
|
||||
SIZE (fasthenry-3.0wr.tar.gz) = 1447130
|
@ -0,0 +1,19 @@
|
||||
--- src/fasthenry/parse_command_line.c.orig Sat Feb 25 22:17:54 2006
|
||||
+++ src/fasthenry/parse_command_line.c Sat Feb 25 22:19:14 2006
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
#include "induct.h"
|
||||
#include <string.h>
|
||||
+#include <time.h>
|
||||
#ifdef SOLARIS
|
||||
#include <sys/systeminfo.h>
|
||||
#endif
|
||||
@@ -558,7 +559,7 @@
|
||||
fix_and_print_opts(opts)
|
||||
ind_opts *opts;
|
||||
{
|
||||
- long clock;
|
||||
+ time_t clock;
|
||||
char hostname[BUFSIZ];
|
||||
|
||||
fprintf(stdout, "Running FastHenry %s (%s)\n", FHVERSION, FHDATE);
|
11
science/fasthenry/files/patch-src+fasthenry+savemat_mod.c
Normal file
11
science/fasthenry/files/patch-src+fasthenry+savemat_mod.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/fasthenry/savemat_mod.c.orig Sat Feb 25 22:21:09 2006
|
||||
+++ src/fasthenry/savemat_mod.c Sat Feb 25 22:26:29 2006
|
||||
@@ -57,7 +57,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
-#ifdef ALPHA
|
||||
+#ifdef ALPHA || defined(__alpha__) || defined(__amd64__) || defined(___sparc64__) || defined(__ia64__)
|
||||
typedef struct {
|
||||
int type; /* type */
|
||||
int mrows; /* row dimension */
|
11
science/fasthenry/files/patch-src+fasthenry+sparse+spDefs.h
Normal file
11
science/fasthenry/files/patch-src+fasthenry+sparse+spDefs.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/fasthenry/sparse/spDefs.h.orig Sat Feb 25 22:50:35 2006
|
||||
+++ src/fasthenry/sparse/spDefs.h Sat Feb 25 22:51:00 2006
|
||||
@@ -462,7 +462,7 @@
|
||||
* MEMORY ALLOCATION
|
||||
*/
|
||||
|
||||
-extern char *malloc(), *calloc(), *realloc();
|
||||
+extern void *malloc(), *calloc(), *realloc();
|
||||
#ifdef ultrix
|
||||
extern void free();
|
||||
extern void abort();
|
19
science/fasthenry/files/patch-src+zbuf+input.c
Normal file
19
science/fasthenry/files/patch-src+zbuf+input.c
Normal file
@ -0,0 +1,19 @@
|
||||
--- src/zbuf/input.c.orig Sat Feb 25 22:33:42 2006
|
||||
+++ src/zbuf/input.c Sat Feb 25 22:34:26 2006
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
*/
|
||||
|
||||
+#include <string.h>
|
||||
#include "mulGlobal.h"
|
||||
#include "zbufGlobal.h"
|
||||
|
||||
@@ -1462,7 +1463,7 @@
|
||||
surface *surf_list, *input_surfaces();
|
||||
char infile[BUFSIZ], *ctime(), hostname[BUFSIZ];
|
||||
charge *read_panels(), *chglist;
|
||||
- long clock;
|
||||
+ time_t clock;
|
||||
extern ITER *kill_num_list, *qpic_num_list, *kinp_num_list, *kq_num_list;
|
||||
extern char *kill_name_list, *qpic_name_list, *kinp_name_list;
|
||||
extern char *kq_name_list;
|
12
science/fasthenry/files/patch-src+zbuf+savemat_mod.c
Normal file
12
science/fasthenry/files/patch-src+zbuf+savemat_mod.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/zbuf/savemat_mod.c.orig Tue Feb 28 21:04:21 2006
|
||||
+++ src/zbuf/savemat_mod.c Tue Feb 28 21:06:27 2006
|
||||
@@ -23,7 +23,8 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
-#ifdef ALPHA
|
||||
+#if defined(ALPHA) || defined(__alpha__) || defined(__amd64__) || defined(___sparc64__) || defined(__ia64__)
|
||||
+
|
||||
typedef struct {
|
||||
int type; /* type */
|
||||
int mrows; /* row dimension */
|
16
science/fasthenry/pkg-descr
Normal file
16
science/fasthenry/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
FastHenry computes the frequency dependent self and mutual inductances and
|
||||
resistances between conductors of complex shape. The algorithm used in
|
||||
FastHenry is an acceleration of rge mesh formulation approach. The linear system
|
||||
resulting from the mesh formulation is solved using a generalized minimal
|
||||
residual algorithm with a fast multipole algorithm to efficiently compute the
|
||||
iterates.
|
||||
|
||||
WWW: http://www.rle.mit.edu/cpg/research_codes.htm
|
||||
|
||||
--------------------- Superconductivity Support -------------------------
|
||||
|
||||
This version of fasthenry has been modified to support superconducting
|
||||
segments and ground planes by Stephen R. Whiteley of Whitleley Research Inc.
|
||||
The analysis used is based on the London equations and the two-fluid
|
||||
model. Both reactive and lossy components of the superconductor complex
|
||||
conductivity are employed in obtaining the impedance matrix.
|
37
science/fasthenry/pkg-plist
Normal file
37
science/fasthenry/pkg-plist
Normal file
@ -0,0 +1,37 @@
|
||||
bin/fasthenry
|
||||
bin/zbuf
|
||||
%%PORTDOCS%%%%DOCSDIR%%/manual.ps.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ms_thesis.ps.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/nonuniform_manual.ps.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/readme.gz
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/30pin.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/3d_example2.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/3d_example2_coarse.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Zc_3d_examp2.mat
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/Zc_pin_con7.mat
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/broken.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/gpexamp_copper.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/hole.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/holey_gp.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/make_nonuniform.c
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/msm.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/nonuni01.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/onebargp.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/pin-con2seg.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/pin-con7.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/pin-connect.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/plane.in
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/rom_check_con7_r20.ckt
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/sline1.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/sline2.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/simple_gp.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/template.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/together.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/together_nonuni.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/trace.test.release
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/trace_over_mesh_new.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/tree_sample.hier
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/tree_sample.inp
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/vias.inp
|
||||
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user