Online_r3 Class Reference

This class creates a checkpoint schedule that is quasi optimal over the range [(snaps+2)*(snaps+1)/2+1,(snaps+3)*(snaps+2)*(snaps+1)/6].class for Online Checkpointing Schedules for r=3. More...

#include <revolve.h>

Inheritance diagram for Online_r3:

Online Schedule List of all members.

Public Member Functions

 Online_r3 (int sn, Checkpoint *c)
 This constructor needs an Online class.
 Online_r3 (Online_r3 &o)
ACTION::action revolve (ostream &str)
 This function returns advance or takeshot during the forward integration.
int get_capo ()
 This function returns the capo.
int get_fine ()
 This function returns -1 because the end is not still reached.
void set_fine (int)
int choose_cp (int number)
 This function returns the index of the checkpoint that can be replaced (Replacement condition).
void tdiff_akt ()
 This function renews the array tdiff after a checkpoint was replaced.
void akt_cp ()
 This function renews the array ord_ch of the class Online after a checkpoint was replaced.
int get_tdiff_end (int i)
 ~Online_r3 ()

Protected Attributes

int forward
 forward is number of time steps to advance
int ind_now
 ind_now is the temporary index of the checkpoints of the array ch3 that have to be taken
int cp
 cp is the Index of the checkpoint that can be replaced.
vector< int > ch3
 ch3 is the array of the final checkpoint distribution for r=3.
vector< int > tdiff
 tdiff[i] is the difference between the i.th and the i-1.th checkpoint
vector< int > tdiff_end
 tdiff_end is the array of differences for the final checkpoint distribution for r=3.
vector< bool > cp_fest
 cp_fest[i] defines if the i.th checkpoint can be overwritten or not.

Detailed Description

This class creates a checkpoint schedule that is quasi optimal over the range [(snaps+2)*(snaps+1)/2+1,(snaps+3)*(snaps+2)*(snaps+1)/6].class for Online Checkpointing Schedules for r=3.

Definition at line 222 of file revolve.h.


Constructor & Destructor Documentation

Online_r3::Online_r3 ( int  sn,
Checkpoint c 
)

This constructor needs an Online class.

Usually this constructor is called after revolve of the class Online_r2 has returned terminate.

Online_r3::Online_r3 ( Online_r3 o  ) 

Online_r3::~Online_r3 (  ) 


Member Function Documentation

ACTION::action Online_r3::revolve ( ostream &  str  )  [virtual]

This function returns advance or takeshot during the forward integration.

Reimplemented from Online.

int Online_r3::get_capo (  )  [virtual]

This function returns the capo.

Reimplemented from Online.

Definition at line 234 of file revolve.h.

References Online::capo.

int Online_r3::get_fine (  )  [virtual]

This function returns -1 because the end is not still reached.

Reimplemented from Online.

Definition at line 236 of file revolve.h.

void Online_r3::set_fine ( int   )  [virtual]

Reimplemented from Online.

Definition at line 238 of file revolve.h.

int Online_r3::choose_cp ( int  number  ) 

This function returns the index of the checkpoint that can be replaced (Replacement condition).

The argument number means that all checkpoints that fulfill the Replacement condition before number cannot be used.

void Online_r3::tdiff_akt (  ) 

This function renews the array tdiff after a checkpoint was replaced.

void Online_r3::akt_cp (  ) 

This function renews the array ord_ch of the class Online after a checkpoint was replaced.

int Online_r3::get_tdiff_end ( int  i  ) 

Definition at line 248 of file revolve.h.

References tdiff_end.


Member Data Documentation

int Online_r3::forward [protected]

forward is number of time steps to advance

Definition at line 256 of file revolve.h.

int Online_r3::ind_now [protected]

ind_now is the temporary index of the checkpoints of the array ch3 that have to be taken

Definition at line 258 of file revolve.h.

int Online_r3::cp [protected]

cp is the Index of the checkpoint that can be replaced.

To find the checkpoint out that can be replaced cp must be used in connection with ord_ch

Definition at line 260 of file revolve.h.

vector<int> Online_r3::ch3 [protected]

ch3 is the array of the final checkpoint distribution for r=3.

These checkpoints must be taken!

Definition at line 262 of file revolve.h.

vector<int> Online_r3::tdiff [protected]

tdiff[i] is the difference between the i.th and the i-1.th checkpoint

Definition at line 264 of file revolve.h.

vector<int> Online_r3::tdiff_end [protected]

tdiff_end is the array of differences for the final checkpoint distribution for r=3.

Definition at line 266 of file revolve.h.

Referenced by get_tdiff_end().

vector<bool> Online_r3::cp_fest [protected]

cp_fest[i] defines if the i.th checkpoint can be overwritten or not.

Definition at line 268 of file revolve.h.


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for IWAVECORE by  doxygen 1.4.7