head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.4 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.2 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q2:1.4.0.48 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.46 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.44 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.42 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.40 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.38 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.36 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.34 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.32 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.30 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.28 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.26 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.24 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.22 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.20 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.18 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.16 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.14 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.12 pkgsrc-2008Q1:1.4.0.10 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.8 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.6 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.4 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.2 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.3.0.10 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.8 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.6 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.4 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.2 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.2.0.6 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.4 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.2 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.1.1.1.0.18 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.16 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.14 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.12 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-2003Q4:1.1.1.1.0.10 pkgsrc-2003Q4-base:1.1.1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2012.09.05.13.10.37; author dmcmahill; state dead; branches; next 1.4; 1.4 date 2007.01.22.17.41.17; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2005.11.03.19.56.36; author rillig; state Exp; branches; next 1.2; 1.2 date 2005.03.21.17.35.53; author dmcmahill; state Exp; branches; next 1.1; 1.1 date 2001.04.28.02.36.35; author dmcmahill; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.04.28.02.36.35; author dmcmahill; state Exp; branches; next ; desc @@ 1.5 log @remove simian and simian-docs. The distfile is no longer available and we are not allowed to mirror it. Addresses pkg/45650 @ text @$NetBSD: patch-ac,v 1.4 2007/01/22 17:41:17 dmcmahill Exp $ sunpro compilers do not like non-constant array sizes in declarations. --- src/plane.cc.orig 1998-12-07 03:28:51.000000000 -0500 +++ src/plane.cc @@@@ -1,6 +1,7 @@@@ /* Ribbon segmentation on ground plane */ #include #include +#include #include "weeks.h" #include "plane.h" #include "../include/linear.h" @@@@ -100,8 +101,11 @@@@ void filplane(Conductor *c) y1=new double[sis->pc+1]; y2=new double[sis->pc+1]; int j,i,k; - struct line line[sis->lc+1]; - struct Plane Plane[sis->pc+2]; + struct line *line; + struct Plane *Plane; + line = new struct line[sis->lc+1]; + Plane = new struct Plane[sis->pc+2]; + for (i=0;i<=sis->lc;i++) line[i].h1=line[i].h2=0.; i=1; j=1; double *sort; @@@@ -213,8 +217,18 @@@@ void filplane(Conductor *c) for (j=1;j<=l[i];j++) LX[i][j]=b[j]; } - struct space su[sis->pc+1][sis->lc+2]; - struct space sl[sis->pc+1][sis->lc+2]; + struct space **su; + struct space **sl; + su = new struct space *[sis->pc+1]; + sl = new struct space *[sis->pc+1]; + + if (su != NULL && sl != NULL) { + for (int i = 0; i < sis->pc+1; i++) { + su[i] = new struct space[sis->lc+2]; + sl[i] = new struct space[sis->lc+2]; + } + } + for (i=1;i<=sis->pc;i++) { for (j=1;j<=u[i]/2;j++) su[i][j].hl=su[i][j].hr=0.; for (j=1;j<=l[i]/2;j++) sl[i][j].hl=sl[i][j].hr=0.; @@@@ -334,11 +348,11 @@@@ void filplane(Conductor *c) for (i=1;i<=sis->pc;i++) { for (j=1;j<=l[i];j++) { if (l[i]!=2) - if (LX[i][j]!=LX[i][j+1]) fprintf(fo,"below %ld %le\n",i,LX[i][j]); + if (LX[i][j]!=LX[i][j+1]) fprintf(fo,"below %d %e\n",i,LX[i][j]); } for (j=1;j<=u[i];j++) { if (u[i]!=2) - if (UX[i][j]!=UX[i][j+1]) fprintf(fo,"above %ld %le\n",i,UX[i][j]); + if (UX[i][j]!=UX[i][j+1]) fprintf(fo,"above %d %e\n",i,UX[i][j]); } } @ 1.4 log @Get this going with sunpro compilers. Gets rid of Error: An integer constant expression is required within the array subscript operator. VS: ---------------------------------------------------------------------- @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Fixed wrong usage of WRKSRC. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2005/03/21 17:35:53 dmcmahill Exp $ d3 3 a5 1 --- src/plane.cc.orig 1998-12-07 08:28:51.000000000 +0000 d15 36 a50 1 @@@@ -334,11 +335,11 @@@@ void filplane(Conductor *c) @ 1.2 log @simian, meet gcc3 (fix c++ code to work with gcc3) @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- plane.cc.orig 1998-12-07 08:28:51.000000000 +0000 +++ plane.cc @ 1.1 log @Initial revision @ text @d3 12 a14 3 --- plane.cc.orig Mon Dec 7 03:28:51 1998 +++ plane.cc Fri Apr 27 16:48:43 2001 @@@@ -335,9 +335,9 @@@@ d26 1 @ 1.1.1.1 log @initial import of simian-2.1 Surface Impedance Method for Interconnect Analysis. SIMIAN is a two dimensional frequency dependent series impedance extraction tool for inerconnects and transmission lines using conductors of rectangular or circular cross section. The use of the surface ribbon method (SRM) greatly enhances the speed of computation relative to the volume filament method (VFM). @ text @@