Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4035 > unrolled thread

Re: Timing progress bar

Started byOliver Ruebenkoenig <ruebenko@wolfram.com>
First post2011-07-29 08:41 +0000
Last post2011-07-29 08:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Timing progress bar Oliver Ruebenkoenig <ruebenko@wolfram.com> - 2011-07-29 08:41 +0000

#4035 — Re: Timing progress bar

FromOliver Ruebenkoenig <ruebenko@wolfram.com>
Date2011-07-29 08:41 +0000
SubjectRe: Timing progress bar
Message-ID<j0tro7$d1b$1@smc.vnet.net>
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_] :=
   LinkWrite[$ParentLink,
    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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web