From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,67fd28f4008484be X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: unconstrained subtype in component declaration, tagged OO Date: Sun, 27 Mar 2011 13:58:26 -0700 Organization: Aioe.org NNTP Server Message-ID: References: <1v6bdfssnx5jd$.1k5a6782kgvu5.dlg@40tude.net> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:18511 Date: 2011-03-27T13:58:26-07:00 List-Id: On 3/27/2011 2:42 AM, Dmitry A. Kazakov wrote: > On Sat, 26 Mar 2011 15:50:17 -0700, Nasser M. Abbasi wrote: > >> Only problem is plotting the solution. So far, I write the >> data from one simulation run to one text file and then use Matlab >> to load and plot the data at the end of the simulation. Works well, >> but data size can get very large, and when I load it to Matlab, it >> requires lots of RAM. > > Hmm, is it Simulink actually? For Simulink you could write a custom a > S-function in Ada and feed it with data at each simulation step. > Simulink? No, meant just simulation. Run code, generate data, make plots of the result. That is all. Any way, I made a small note of this exercise on using Ada for solving simple 1D PDE (advection PDE using lax-wendroff scheme) using OO notation. Here it is http://12000.org/my_notes/solve_advection_1D_in_Ada/index.htm This is my very first attempt at using Ada OO, but I like Ada OO so far. --Nasser