Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Topic: Timing progress bar
Replies: 3   Last Post: Jul 29, 2011 3:53 AM

 Messages: [ Previous | Next ]
 Berthold Hamburger Posts: 20 Registered: 3/11/11
Re: Timing progress bar
Posted: Jul 29, 2011 3:53 AM

Thanks Oliver!

I also found the progress.m package:
http://www.physics.ohio-state.edu/~jeremy/mathematica/progress/

Is this compatible with Mathematica 8?

Regards

Berthold
--
Berthold Hamburger - Cellist/Spain
http://www.artinso.com | http://www.astronomy.artinso.com |
http://www.artemis.artinso.com

-----Original Message-----
From: Oliver Ruebenkoenig [mailto:ruebenko@wolfram.com]
Sent: jueves, 28 de julio de 2011 13:34
To: Berthold Hamburger
Cc: mathgroup@smc.vnet.net
Subject: Re: Timing progress bar

On Thu, 28 Jul 2011, Berthold Hamburger wrote:

> Hi,
>
> Is there any possibility to get visible feedback about the progress of
> a calculation via the Timing function? Something like a progress bar
> or "% completed".
>
> Thanks
>
> Berthold
>
>

Berthold,

here are two examples with NDSolve:

tEnd = 100;
ProgressIndicator[Dynamic[currentTime], {0, tEnd}] currentTime = 0;
NDSolve[{D[u[t, x], t] == D[u[t, x], x, x], u[0, x] == 0,
u[t, 0] == Sin[t], u[t, 5] == 0}, u, {t, 0, tEnd}, {x, 0, 5},
EvaluationMonitor :> (currentTime = t;)]

showStatus[status_] :=
SetNotebookStatusLine[FrontEnd`EvaluationNotebook[],
ToString[status]]];
clearStatus[] := showStatus[""];
clearStatus[]

(* look in the lower left of the FrontEnd *)

NDSolve[{D[u[t, x], t] == D[u[t, x], x, x], u[0, x] == 0,
u[t, 0] == Sin[t], u[t, 5] == 0}, u, {t, 0, 10}, {x, 0, 5},
EvaluationMonitor :> showStatus["t = " <> ToString[CForm[t]]]]

Oliver

Date Subject Author
7/29/11 Oliver Ruebenkoenig
7/29/11 Berthold Hamburger