|
coffee
Coronagraph Optimization For Fast Exoplanet Exploration
|
core functions More...
Functions | |
| int | clock_gettime (int clk_id, struct mach_timespec *t) |
Module initialization | |
| void | __attribute__ ((constructor)) |
| int | init_00CORE () |
| int | printRED (char *string) |
| Print string in red. More... | |
| int | printWARNING (const char *file, const char *func, int line, char *warnmessage) |
| Print warning and continue. More... | |
| int | printERROR (const char *file, const char *func, int line, char *errmessage) |
| Print error (in red) and continue. More... | |
| int | set_precision (int vp) |
| int | CLIinfoPrint () |
| int | CLIWritePid () |
| struct timespec | timespec_diff (struct timespec start, struct timespec end) |
| double | timespec_diff_double (struct timespec start, struct timespec end) |
| int | file_exist (char *filename) |
| void __attribute__ | ( | (constructor) | ) |
| int CLIinfoPrint | ( | ) |
| int CLIWritePid | ( | ) |
| int clock_gettime | ( | int | clk_id, |
| struct mach_timespec * | t | ||
| ) |
| int file_exist | ( | char * | filename | ) |
| int init_00CORE | ( | ) |
| int printERROR | ( | const char * | file, |
| const char * | func, | ||
| int | line, | ||
| char * | errmessage | ||
| ) |
Print error (in red) and continue.
Print error string
| [in] | file | CHAR* file name from which error is issued |
| [in] | func | CHAR* function name from which error is issued |
| [in] | line | int line number from which error is issued |
| [in] | warnmessage | CHAR* error message to be printed |
| int printRED | ( | char * | string | ) |
Print string in red.
Print red string to stdout
| [in] | string | CHAR* |
| int printWARNING | ( | const char * | file, |
| const char * | func, | ||
| int | line, | ||
| char * | warnmessage | ||
| ) |
Print warning and continue.
Print warning string
| [in] | file | CHAR* file name from which warning is issued |
| [in] | func | CHAR* function name from which warning is issued |
| [in] | line | int line number from which warning is issued |
| [in] | warnmessage | CHAR* warning message to be printed |
| int set_precision | ( | int | vp | ) |
Set default precision (single or double)
| [in] | vp | int precision mode |
| [in] | warnmessage | CHAR* error message to be printed
|
| struct timespec timespec_diff | ( | struct timespec | start, |
| struct timespec | end | ||
| ) |
| double timespec_diff_double | ( | struct timespec | start, |
| struct timespec | end | ||
| ) |