From: Gautier Write-only <gautier@somewhere.nil>
Subject: Re: using charles library
Date: Thu, 29 May 2003 20:56:20 +0200
Date: 2003-05-29T20:56:20+02:00 [thread overview]
Message-ID: <3ED657D4.36ABC3A9@somewhere.nil> (raw)
In-Reply-To: d3ba4d4c.0305290929.4ba345cb@posting.google.com
> > Did you consider a translation of the Pascal code too (it could
> > facilitate maintenance and performance, and lift the language
> > interfacing issues) ?
Roman V. Isaev:
> The main question is not the translation itself which is possible.
> It may pose problems too as these 3000+ lines of "pascal" contain mostly this:
>
> IF KK=2 THEN GOTO 179;
> GOTO 178;
> 179: YRR:=YR21;
> YZR:=ABS((1.0+Y2)/Y12-2.0*XY*(XY-Z)-4.0/3.0*
> (Y1+Y2)/Y12*Z+(2.0*XY-Z)*(2.0*XY-Z)*(2.0*XY-Z)/3.0*Z*Y1/(1.0+Y));
> IF YZR>1.E-18 THEN GOTO 190;
> YZR:=1.E-18;
> 190: YR21:=TAU0*DG*FG/ETA/Q-8.0*Z/YZR;
Ouch!
Are you sure you don't want to know the math behind ?... - Just kidding.
> > In that case the tool on the link below may help you...
> > Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm#p2ada
>
> This tool breaks on lines like this:
[ things with 2.* or 1.e-5 ]
I'll try something. Normally a little change to Pascal.l should do the trick.
Normally...
> there are no useful 1.e constants like 1.e-18 and 1.E6 in ada
Sure there are: 1.0e-18, 1.0E6 :-)
> Writeln(FFF,'text',QY1:1:5,'text') turns into something like that:
>
> Put(FFF);
> Put( -- [P2Ada]: !Help! Maybe (file,...) here
> "text text text ");
> Put( -- [P2Ada]: !Help! Maybe (file,...) here
> QY1,5,1,0);
> Put( -- [P2Ada]: !Help! Maybe (file,...) here
> " text text text"); New_Line; -- [P2Ada]: !Help! Maybe (file)
Okay: if you make P2Ada "see" the definition of FFF (a file I suppose),
e.g. by using the Import/Export features of P2Ada, you'll have
Put(FFF,"text text text");
Put(FFF,QY1,5,1,0);
Put(FFF,"text text text");
New_Line(FFF);
...at least I hope so - I've left some bugs for the pleasure of it.
________________________________________________________
Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm
NB: For a direct answer, e-mail address on the Web site!
next prev parent reply other threads:[~2003-05-29 18:56 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-26 13:27 using charles library Roman V. Isaev
2003-05-26 13:40 ` Preben Randhol
2003-05-26 16:44 ` Roman V. Isaev
2003-05-26 17:05 ` Preben Randhol
2003-05-26 17:10 ` Preben Randhol
2003-05-26 22:05 ` Roman V. Isaev
2003-05-26 17:16 ` Jeffrey Carter
2003-05-27 15:05 ` Matthew Heaney
2003-05-27 18:28 ` Stephen Leake
2003-05-26 17:20 ` Preben Randhol
2003-05-26 22:46 ` Roman V. Isaev
2003-05-27 4:35 ` Gautier Write-only
2003-05-29 17:29 ` Roman V. Isaev
2003-05-29 18:56 ` Gautier Write-only [this message]
2003-05-29 23:19 ` Gautier Write-only
2003-05-30 7:56 ` Roman V. Isaev
2003-05-30 13:49 ` Gautier
2003-05-30 14:36 ` Robert C. Leif
2003-05-30 17:32 ` Preben Randhol
2003-05-30 19:21 ` Randy Brukardt
2003-05-31 11:50 ` Gautier Write-only
2003-05-31 14:24 ` Bill Findlay
2003-06-01 3:42 ` Randy Brukardt
2003-06-02 11:02 ` Georg Bauhaus
2003-06-02 20:25 ` Gautier Write-only
2003-05-30 8:48 ` Preben Randhol
2003-05-27 10:31 ` Preben Randhol
2003-05-29 20:30 ` Roman V. Isaev
2003-05-30 9:01 ` Preben Randhol
2003-05-30 22:02 ` Roman V. Isaev
2003-05-31 13:34 ` Preben Randhol
2003-05-27 18:27 ` Stephen Leake
2003-05-27 20:24 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox