Functions

src/obase/Checkpoint.h File Reference

Go to the source code of this file.

Functions

long getCheckpoint ()
void setCheckpoint (long value, char *outputBaseDir, char *versionedOutputBaseDir)
bool runningWithCheckpoints ()
int renameCheckpointFile ()
void setCheckpointInputFile (char *filename)
char * getCheckpointInputFile ()
int removeCheckpoints ()
void destroyCheckpoint ()
void writeCheckpoint (MAP_DEPTH_MATRIX w, FITSParameters parms, BaseDirectory *baseName)

Function Documentation

void destroyCheckpoint (  ) 

Remove all memory associated with checkpoint file and path names.

long getCheckpoint (  ) 
char* getCheckpointInputFile (  ) 

Return the full path to the latest checkpoint file.

int removeCheckpoints (  ) 

Remove the checkpoint sub-directory

int renameCheckpointFile (  ) 

Rename the checkpoint sub-directory

bool runningWithCheckpoints (  ) 
void setCheckpoint ( long  value,
char *  outputBaseDir,
char *  versionedOutputBaseDir 
)

Setup everything for checkpoints. Find existing checkpoint directory for restarting, setup the checkpoint filenames.

Parameters:
[in] value Write a checkpoint file after this many iterations of lsqr.
[in] outputBaseDir Be sure to send the original output base directory, not the one that has version(s). This is where we'll look for an existing checkpoint directory.
[in] versionedOutputBaseDir Path for output base directory. This is where the checkpoint files will go.
void setCheckpointInputFile ( char *  filename  ) 

Record the path and name of a previous checkpoint file.

Parameters:
[in] filename Full path to a previous checkpoint file.
void writeCheckpoint ( MAP_DEPTH_MATRIX  w,
FITSParameters  parms,
BaseDirectory baseName 
)

Write OLA inversion weights, w, to a checkpoint file in a sub-directory.

Parameters:
[in] w MAP_DEPTH_MATRIX containing the solution weights.
[in] parms FITSParameters contains header parameters and values for FITS file.
[in] baseName BaseDirectory structure for managing output file name.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines