CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

functionObjectList in Time::run()

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 12, 2013, 08:02
Default functionObjectList in Time::run()
Senior Member
Join Date: Jan 2012
Posts: 159
Rep Power: 7
maybee is on a distinguished road
Sponsored Links

within the method run() of class Time it can be found:

 if (!running && timeIndex_ != startTimeIndex_) //label timeIndex_; 
818* {                                                                             
819* // Note, end() also calls an indirect start() as required
820* functionObjects_.end();   //functionObjects_ Function objects executed at start and on ++, += 
                                  //end(): Called when Time::run() determines that the time-loop exits.
For full code of run() see:

Furthermore I know "mutable functionObjectList functionObjects_" is defined first within the intializer list of constructor of class Time for creating object "runTime" with:

functionObjects_(*this, !args.optionFound("noFunctionObjects"))
where the following constructor of class functionObjectList is called:

   63 (
   64     const Time& t,
   65     const bool execution
   66 )
   67 :
   68     PtrList<functionObject>(),
   69     digests_(),
   70     indices_(),
   71     time_(t),
   72     parentDict_(t.controlDict()),
   73     execution_(execution),
   74     updated_(false)
   75 {}
Still I don t get what the function of "mutable functionObjectList functionObjects_" is, e.g. what calling method end() on "mutable functionObjectList functionObjects_" does. Can someone tell me what is happening when calling end() at the submember "functionObjects_" and what "functionsObjects_" is good for?
maybee is offline   Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Sponsored Links

All times are GMT -4. The time now is 05:14.