Hi Shawn,

it depends on who's time ...

By default every 20 timesteps a restart file is written. You recognize 
them by the ending *.drs .

If there is a restart file
- you get the simulation time from the filename (as described in the 
sample input files)
- you put that number behind "restart ="
- you remove the "#" before "restart"
- you start your application

it should say sth like:
Deserialize from file 'obstacle_time=19824.6_rank=0.drs'

and start from the time specified by restart =...

cheers

Philipp

p.s.:
If there are any groups (things in brackets []) in your input file 
before the "restart" keyword, you need to put a set of empty brackets 
before "restart" .
Otherwise restart will belong to the last group and thus cannot be used.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    Institut fuer Wasser- und Umweltsystemmodellierung (IWS)
    Lehrstuhl fuer Hydromechanik und Hydrosystemmodellierung (LH2)
    Universitaet Stuttgart, Pfaffenwaldring 61, 70569 Stuttgart
    www.iws.uni-stuttgart.de/hydrosys
    Phone: +49-711-685 - 60461
    Fax:   +49-711-685 - 60430
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


On 07/25/2012 11:14 PM, Shawn Zhang wrote:
> Hi All,
> Sorry if this is a naive question, but I can't seem to get the restart
> function working. Sample init files have a parameter,
> restart =
> But it appears to me that the value should to be an existing restart file.
> How do I enable restart the first time?
> I can of cause dig deeper into the code but I hope I can save sometime
> by asking...
> Thanks a lot in advance.
> Best,
> -Shawn
>
>
> _______________________________________________
> Dumux mailing list
> [email protected]
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
>

_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to