diff options
Diffstat (limited to 'cad/simian/patches')
-rw-r--r-- | cad/simian/patches/patch-ab | 52 | ||||
-rw-r--r-- | cad/simian/patches/patch-ac | 18 | ||||
-rw-r--r-- | cad/simian/patches/patch-ad | 57 | ||||
-rw-r--r-- | cad/simian/patches/patch-ae | 12 | ||||
-rw-r--r-- | cad/simian/patches/patch-af | 24 | ||||
-rw-r--r-- | cad/simian/patches/patch-ag | 29 | ||||
-rw-r--r-- | cad/simian/patches/patch-ah | 14 |
7 files changed, 185 insertions, 21 deletions
diff --git a/cad/simian/patches/patch-ab b/cad/simian/patches/patch-ab index b41b651f21c..dbfc4726f67 100644 --- a/cad/simian/patches/patch-ab +++ b/cad/simian/patches/patch-ab @@ -1,36 +1,63 @@ -$NetBSD: patch-ab,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ +$NetBSD: patch-ab,v 1.2 2005/03/21 17:35:53 dmcmahill Exp $ ---- main.cc.orig Thu Dec 10 05:56:19 1998 -+++ main.cc Fri Apr 27 16:47:38 2001 -@@ -74,5 +74,5 @@ +--- main.cc.orig 1998-12-10 10:56:19.000000000 +0000 ++++ main.cc +@@ -1,6 +1,7 @@ + /* Main program, prints out all the results */ + /* written and modified by Emre Tuncer and Sangwoo Kim */ +-#include <fstream.h> ++#include <iostream> ++#include <fstream> + #include <stdlib.h> + #include <math.h> + #include <stdio.h> +@@ -42,7 +43,7 @@ main(int argc,char** argv) + printf("\n"); + start=time(NULL); + if (argc!=3) { +- cerr << "Usage: " << argv[0] << ++ std::cerr << "Usage: " << argv[0] << + " <input file> <w/r>\n"; + exit(1); + } +@@ -73,7 +74,7 @@ main(int argc,char** argv) + Nf=nf[Nc+1]; LastFil(fils); //remove last empty entry. // Corr(fils); /* x1 < x2 */ - printf("Total %ld ribbons, %ld conductor\n",Nf,Nc); + printf("Total %d ribbons, %d conductor\n",Nf,Nc); L=allocator(Nf); -@@ -85,5 +85,5 @@ + if (argv[2][0]=='w') { +@@ -84,7 +85,7 @@ main(int argc,char** argv) + for (j=i;j<Nf;j++) { L[j][i]=L[i][j]=Lp(iF,jF); jF=jF->next; - fprintf(fo,"%ld %ld %le\n",i,j,L[i][j]*sis->unit); + fprintf(fo,"%d %d %e\n",i,j,L[i][j]*sis->unit); } iF=iF->next; -@@ -97,5 +97,5 @@ + } +@@ -96,7 +97,7 @@ main(int argc,char** argv) + fi=fopen("induc","r"); for (i=0;i<Nf;i++) { for (j=i;j<Nf;j++) { - fscanf(fi,"%ld %ld %le\n",&k,&k,&L[i][j]); + fscanf(fi,"%d %d %le\n",&k,&k,&L[i][j]); L[i][j]/=sis->unit; L[j][i]=L[i][j]; -@@ -115,5 +115,5 @@ + } +@@ -114,7 +115,7 @@ main(int argc,char** argv) + stop= time(NULL); printf("\n"); printf("*********** \n"); - printf("Total Elapsed time=%ld Seconds\n",(stop-start)); + printf("Total Elapsed time=%ld Seconds\n",(long int) (stop-start)); exit(1); } -@@ -144,9 +144,9 @@ + Z=matrix(Nf,Nf); +@@ -143,11 +144,11 @@ main(int argc,char** argv) + if ((sis->loop != 0) || (Nc==1)){ z=matrix(Nc,Nc); z=inverse(ymtrx,Nc); - fprintf(fzs,"\nImpedance %ld x %ld matrix (R,L) at f=%10.4le Hz\n", @@ -42,7 +69,9 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ + fprintf(fzs,"(%11.4e,%11.4e) ",RE(z[i][j])*sis->unit,IM(z[i][j]) /w*sis->unit); } -@@ -182,10 +182,10 @@ + fprintf(fzs,"\n"); +@@ -181,12 +182,12 @@ main(int argc,char** argv) + Din=matrix(numsgn+1,numsgn+1); Din=Zequ(cons,numsgn,Nc); - fprintf(fzs,"\nImpedance %ld x %ld matrix (R,L) at f=%10.4le Hz\n", @@ -55,10 +84,13 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ + fprintf(fzs,"(%11.4e,%11.4e) ",RE(Din[i][j])*sis->unit,IM(Din[i][j]) /w*sis->unit); } -@@ -200,5 +200,5 @@ + fprintf(fzs,"\n"); +@@ -199,7 +200,7 @@ main(int argc,char** argv) + stop= time(NULL); printf("\n"); printf("*********** \n"); - printf("Total Elapsed time=%ld Seconds\n",(stop-start)); + printf("Total Elapsed time=%ld Seconds\n",(long int) (stop-start)); exit(0); } + diff --git a/cad/simian/patches/patch-ac b/cad/simian/patches/patch-ac index 749fd6161f0..ca92a1a36bc 100644 --- a/cad/simian/patches/patch-ac +++ b/cad/simian/patches/patch-ac @@ -1,8 +1,17 @@ -$NetBSD: patch-ac,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ +$NetBSD: patch-ac,v 1.2 2005/03/21 17:35:53 dmcmahill Exp $ ---- plane.cc.orig Mon Dec 7 03:28:51 1998 -+++ plane.cc Fri Apr 27 16:48:43 2001 -@@ -335,9 +335,9 @@ +--- plane.cc.orig 1998-12-07 08:28:51.000000000 +0000 ++++ plane.cc +@@ -1,6 +1,7 @@ + /* Ribbon segmentation on ground plane */ + #include <math.h> + #include <stdio.h> ++#include <stdlib.h> + #include "weeks.h" + #include "plane.h" + #include "../include/linear.h" +@@ -334,11 +335,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]); @@ -14,3 +23,4 @@ $NetBSD: patch-ac,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ + if (UX[i][j]!=UX[i][j+1]) fprintf(fo,"above %d %e\n",i,UX[i][j]); } } + diff --git a/cad/simian/patches/patch-ad b/cad/simian/patches/patch-ad index c8ab727282c..2fa1c2cc96d 100644 --- a/cad/simian/patches/patch-ad +++ b/cad/simian/patches/patch-ad @@ -1,29 +1,53 @@ -$NetBSD: patch-ad,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ +$NetBSD: patch-ad,v 1.2 2005/03/21 17:35:53 dmcmahill Exp $ ---- reader.cc.orig Thu Dec 10 04:02:44 1998 -+++ reader.cc Fri Apr 27 17:00:23 2001 -@@ -213,5 +213,5 @@ +--- reader.cc.orig 1998-12-10 09:02:44.000000000 +0000 ++++ reader.cc +@@ -1,6 +1,9 @@ + /* Reading Input Geometry */ +-#include <iostream.h> +-#include <fstream.h> ++#include <iostream> ++#include <ios> ++#include <streambuf> ++#include <sstream> ++#include <fstream> + #include <stdlib.h> + #include <string.h> + #include <stdio.h> +@@ -29,7 +32,7 @@ void Default(Conductor* c) + c->xc=0; c->yc=0; + } + +-void ReadRest(Sys *sis,Conductor* conduc,fstream& fl,int& line) ++void ReadRest(Sys *sis,Conductor* conduc,std::fstream& fl,int& line) + { + char* s1; + char *proj; +@@ -212,19 +215,19 @@ void ReadRest(Sys *sis,Conductor* conduc + else if (strcmp(s1,"nx")==0) { fl >> s1; if (strcmp(s1,"=")==0) fl >> conduc->dx; - else sscanf(s1,"%c%ld",&dum,&conduc->dx); + else sscanf(s1,"%c%d",&dum,&conduc->dx); } else if (strcmp(s1,"ny=")==0) fl >> conduc->dy; -@@ -219,5 +219,5 @@ + else if (strcmp(s1,"ny")==0) { fl >> s1; if (strcmp(s1,"=")==0) fl >> conduc->dy; - else sscanf(s1,"%c%ld",&dum,&conduc->dy); + else sscanf(s1,"%c%d",&dum,&conduc->dy); } else if (strcmp(s1,"nr=")==0) fl >> conduc->nr; -@@ -225,5 +225,5 @@ + else if (strcmp(s1,"nr")==0) { fl >> s1; if (strcmp(s1,"=")==0) fl >> conduc->nr; - else sscanf(s1,"%c%ld",&dum,&conduc->nr); + else sscanf(s1,"%c%d",&dum,&conduc->nr); } else if ((strncmp(s1,"*",1)==0)||(strncmp(s1,".",1)==0)) { -@@ -266,9 +266,9 @@ + fl.getline(proj,80,'\n'); +@@ -265,11 +268,11 @@ void ReadRest(Sys *sis,Conductor* conduc + else if (strncmp(s1,"v=",2)==0) sscanf(s1,"%c%c%le",&dum,&dum,&conduc->v); else if (strncmp(s1,"nx=",3)==0) - sscanf(s1,"%c%c%c%ld",&dum,&dum,&dum,&conduc->dx); @@ -36,3 +60,22 @@ $NetBSD: patch-ad,v 1.1.1.1 2001/04/28 02:36:35 dmcmahill Exp $ + sscanf(s1,"%c%c%c%d",&dum,&dum,&dum,&conduc->nr); else if (strncmp(s1,"rx=",3)==0) sscanf(s1,"%c%c%c%le",&dum,&dum,&dum,&conduc->rx); + else if (strncmp(s1,"ry=",3)==0) +@@ -297,7 +300,7 @@ void reader(Conductor* conduc,Sys* sis,c + ss=new char[80]; + s1=new char[80]; + +- fstream fll(fn,ios::in); ++ std::fstream fll(fn,std::ios::in); + if (!fll) { + exit(1); + } +@@ -337,7 +340,7 @@ void reader(Conductor* conduc,Sys* sis,c + ss=new char[100]; + int p_c,l_c; + p_c=0; l_c=0; +- fstream fl(fn,ios::in); ++ std::fstream fl(fn,std::ios::in); + line=0; + do { + fl >> ss; diff --git a/cad/simian/patches/patch-ae b/cad/simian/patches/patch-ae new file mode 100644 index 00000000000..c0ea9604f5a --- /dev/null +++ b/cad/simian/patches/patch-ae @@ -0,0 +1,12 @@ +$NetBSD: patch-ae,v 1.1 2005/03/21 17:35:53 dmcmahill Exp $ + +--- Zs.cc.orig 1998-12-07 08:28:51.000000000 +0000 ++++ Zs.cc +@@ -1,6 +1,6 @@ + /* EII for Plane wave model */ + +-#include <stream.h> ++#include <sstream> + #include <stdlib.h> + #include <stdio.h> + #include <math.h> diff --git a/cad/simian/patches/patch-af b/cad/simian/patches/patch-af new file mode 100644 index 00000000000..56644e6f965 --- /dev/null +++ b/cad/simian/patches/patch-af @@ -0,0 +1,24 @@ +$NetBSD: patch-af,v 1.1 2005/03/21 17:35:53 dmcmahill Exp $ + +--- surfer1.cc.orig 1998-12-10 10:10:46.000000000 +0000 ++++ surfer1.cc +@@ -2,8 +2,8 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> +-#include <iostream.h> +-#include <fstream.h> ++#include <iostream> ++#include <fstream> + #include "weeks.h" + #include "linklist.h" + #include "nonuni.h" +@@ -19,7 +19,7 @@ Filament* surfer(Conductor* cc,Filament* + double dum; + l=0; u=0; + if ((cc->lp==0)&&(sis->pc!=0)) { +- fstream plate("plate",ios::in); ++ std::fstream plate("plate",std::ios::in); + char *ss; + ss=new char[100]; + do { diff --git a/cad/simian/patches/patch-ag b/cad/simian/patches/patch-ag new file mode 100644 index 00000000000..a9de57dce94 --- /dev/null +++ b/cad/simian/patches/patch-ag @@ -0,0 +1,29 @@ +$NetBSD: patch-ag,v 1.1 2005/03/21 17:35:53 dmcmahill Exp $ + +--- linklist.cc.orig 1998-12-07 08:28:51.000000000 +0000 ++++ linklist.cc +@@ -1,12 +1,13 @@ ++#include <iostream> ++#include <sstream> + #include <stdlib.h> + #include <stdio.h> +-#include <stream.h> + #include "weeks.h" + + void newCon(Conductor* conduc) + { + if ((conduc->next=new Conductor)==NULL) { +- cerr << "Can't allocate!\n"; ++ std::cerr << "Can't allocate!\n"; + exit(1); + } + } +@@ -15,7 +16,7 @@ void newCon(Conductor* conduc) + void newFil(Filament* filam) + { + if ((filam->next=new Filament)==(Filament*)NULL) { +- cerr << "Can't allocate!\n"; ++ std::cerr << "Can't allocate!\n"; + exit(1); + } + filam->next->next = (Filament*) NULL; diff --git a/cad/simian/patches/patch-ah b/cad/simian/patches/patch-ah new file mode 100644 index 00000000000..052740dfe4a --- /dev/null +++ b/cad/simian/patches/patch-ah @@ -0,0 +1,14 @@ +$NetBSD: patch-ah,v 1.1 2005/03/21 17:35:53 dmcmahill Exp $ + +--- ../include/linear.cc.orig 1998-12-07 08:28:52.000000000 +0000 ++++ ../include/linear.cc +@@ -10,7 +10,8 @@ + ** Modification includes new memory allocation scheme and ** + ** LU decomposition ** + ***************************************************************/ +-#include <stream.h> ++#include <iostream> ++#include <sstream> + #include <stdlib.h> + #include <stdio.h> + #include <errno.h> |