[Gate-users] Time to complete the simulation
ayanas at mail.med.upenn.edu
ayanas at mail.med.upenn.edu
Fri Apr 11 17:32:58 CEST 2008
Hello,
You may modify YourParthtoGateInstall/src/GateEventAction.cc as
void GateEventAction::EndOfEventAction(const G4Event* evt)
{
G4int event_id = evt->GetEventID();
if ( (event_id % 1000000) == 0 )
G4cout << ">>> Event " << event_id << G4endl;
...
}
This would write the completed event number into standard output
in multiples of 1000000 events (you may direct this to a log file as well).
In this way you can tell how may events were completed and calculate
how many there are to go...
If you have multiple runs (time slices),
you can do the same in GateRunAction.cc for EndOfRunAction method,
but using GetRunID().
I hope this helps..
Ahmet.
Quoting Davi Ezequiel François <davifrancois at hotmail.com>:
>
> Dear Yuxuan and others GATE Users.
>
> Thank you a lot for your contribuition.
>
> But, you know, or someone know, if GATE has a parameter that can I put in my
> script .mac for give me a percentage that already completed or status of my
> simulation while it is running?
>
> ThanksDavi François
>
>
> To: davifrancois at hotmail.comCC: gate-users at lists.healthgrid.org;
> gate-users-bounces at lists.healthgrid.orgSubject: Re: [Gate-users] Time to
> complete the simulationFrom: yuxuan.zhang at di.mdacc.tmc.eduDate: Thu, 10 Apr
> 2008 13:41:07 -0500If you want to have a simulation time of 100 second, then
> first set it as a very small number such as 0.001 second and run the
> simulation and count the time. If the simulation finished in 10 second, then
> you can calculate that the computation time for 100 second will be 1e6
> second. Of course you can also play with the source intensity to estimate the
> total computation time too. yuxuan
>
>
>
>
> Davi Ezequiel François <davifrancois at hotmail.com> Sent by:
> <gate-users-bounces at lists.healthgrid.org>
> 04/10/2008 12:31 PM
> To: <gate-users at lists.healthgrid.org> cc:
> Subject: [Gate-users] Time to complete the simulationDear
> Gate users.I started Gate simulation now, but I don't know how long time it
> will take to finish.How can I know, or have an estimate about how long time
> the simulation will take to complete? With the number of events or
> activities? Or Gate has a syntax that can I put in the script .mac that will
> give me a percentage of what already been completed or the time needed to
> finish?Someone have a idea?Thanks,Davi François
>
> Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver
> offline. Conheça o MSN Mobile! Crie já o
> seu!_______________________________________________Gate-users mailing
>
listGate-users at lists.healthgrid.orghttp://lists.healthgrid.org/mailman/listinfo/gate-users
> _________________________________________________________________
> Receba GRÁTIS as mensagens do Messenger no seu celular quando você estiver
> offline. Conheça o MSN Mobile!
> http://mobile.live.com/signup/signup2.aspx?lc=pt-br
--
Ahmet Sedat Ayan, Ph.D
Department of Radiology
University of Pennsylvania
Philadelphia, PA 19104
Voice : (++ 1 215) 349-5751 (W) (GMT-5)
More information about the Gate-users
mailing list