Hi Bernd and Philipp,
I truly appreciate the feedback, however, my frustration is that I do not have
the restart files.
My understanding is that restart should be ON by default, and a series of *.drs
files should be generated. However, In my simulation, I do not have any *.drs
files. I only have VTK result files. This is the case not only for my code, but
for the standard tests.
So my question is that how can I turn ON restart capability, so I will have the
*.drs files generated?
Sorry about the confusion.
Best regards,
-Shawn
From: Bernd Flemisch <[email protected]>
To: DuMuX User Forum <[email protected]>
Sent: Thursday, July 26, 2012 3:13 AM
Subject: Re: [DuMuX] How to enable restart capability in DumuX
Hi Shawn,
an addition: you can change the default behavior of writing a restart
file every 10 time steps by overwriting the routine
shouldWriteRestartFile from the box problem, i.e., by copying it from
dumux/common/boxmodels/boxproblem.hh into your specific problem class
and adapting it to your needs.
Kind regards
Bernd
On 07/26/2012 08:33 AM, Philipp Nuske wrote:
> 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
--
_____________________________________________________________________
Bernd Flemisch phone: +49 711 685 69162
IWS, Universität Stuttgart fax: +49 711 685 60430
Pfaffenwaldring 61 email: [email protected]
D-70569 Stuttgart url: www.hydrosys.uni-stuttgart.de
_____________________________________________________________________
_______________________________________________
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