HPhi++
3.1.0
|
File for defining functions to write log messages. More...
#include <ctime>
#include "Common.hpp"
#include "log.hpp"
#include "FileIO.hpp"
Go to the source code of this file.
Functions | |
int | TimeKeeper (struct BindStruct *X, const char *cFileName, const char *cTimeKeeper_Message, const char *cWriteType) |
Functions for writing a time log. More... | |
int | TimeKeeperWithStep (struct BindStruct *X, const char *cFileName, const char *cTimeKeeper_Message, const char *cWriteType, const int istep) |
Functions for writing a time log. More... | |
int | TimeKeeperWithRandAndStep (struct BindStruct *X, const char *cFileName, const char *cTimeKeeper_Message, const char *cWriteType, const int irand, const int istep) |
Functions for writing a time log. More... | |
File for defining functions to write log messages.
Definition in file log.cpp.
int TimeKeeper | ( | struct BindStruct * | X, |
const char * | cFileName, | ||
const char * | cTimeKeeper_Message, | ||
const char * | cWriteType | ||
) |
Functions for writing a time log.
[in] | X | Define List for parameters. |
[in] | cFileName | character for a file name of writing. |
[in] | cTimeKeeper_Message | character for a sentence writing in a file. |
[in] | cWriteType | character for determining writing option for fopen. |
0 | normally finished. |
-1 | unnormally finished. |
Definition at line 42 of file log.cpp.
References DefineList::CDataFileHead, childfopenMPI(), BindStruct::Def, and TimeKeeperWithStep().
Referenced by CalcByLOBPCG(), CalcByTEM(), CalcSpectrum(), CalcSpectrumByBiCG(), diagonalcalc(), expec_cisajs(), LOBPCG_Main(), main(), Read_sz(), and sz().
int TimeKeeperWithRandAndStep | ( | struct BindStruct * | X, |
const char * | cFileName, | ||
const char * | cTimeKeeper_Message, | ||
const char * | cWriteType, | ||
const int | irand, | ||
const int | istep | ||
) |
Functions for writing a time log.
[in] | X | Define List for parameters. |
[in] | cFileName | character for a file name of writing. |
[in] | cTimeKeeper_Message | character for a sentence writing in a file. |
[in] | cWriteType | character for determining writing option for fopen. |
[in] | irand | int for writing a number of seed of rand. |
[in] | istep | int for writing steps of progress for a function under calculating. |
0 | normally finished. |
-1 | unnormally finished. |
Definition at line 117 of file log.cpp.
References DefineList::CDataFileHead, childfopenMPI(), and BindStruct::Def.
Referenced by CalcByTPQ(), expec_cisajs(), expec_cisajscktaltdc(), and TimeKeeperWithStep().
int TimeKeeperWithStep | ( | struct BindStruct * | X, |
const char * | cFileName, | ||
const char * | cTimeKeeper_Message, | ||
const char * | cWriteType, | ||
const int | istep | ||
) |
Functions for writing a time log.
[in] | X | Define List for parameters. |
[in] | cFileName | character for a file name of writing. |
[in] | cTimeKeeper_Message | character for a sentence writing in a file. |
[in] | cWriteType | character for determining writing option for fopen. |
[in] | istep | int for writing steps of progress for a function under calculating. |
0 | normally finished. |
-1 | unnormally finished. |
Definition at line 78 of file log.cpp.
References DefineList::CDataFileHead, childfopenMPI(), BindStruct::Def, and TimeKeeperWithRandAndStep().
Referenced by CalcByTEM(), expec_cisajs(), expec_cisajscktaltdc(), expec_energy_flct(), LOBPCG_Main(), and TimeKeeper().