accelerInt  v0.1
exp4_init.c
Go to the documentation of this file.
1 
10 #include "rational_approximant.h"
11 
12 #ifdef GENERATE_DOCS
13 namespace exp4 {
14 #endif
15 
22  #ifdef LOG_OUTPUT
23  //file for krylov logging
24  FILE* logFile;
25  //open and clear
26  const char* f_name = solver_name();
27  int len = strlen(f_name);
28  char out_name[len + 17];
29  sprintf(out_name, "log/%s-kry-log.txt", f_name);
30  logFile = fopen(out_name, "w");
31 
32  char out_reject_name[len + 23];
33  sprintf(out_reject_name, "log/%s-kry-reject.txt", f_name);
34  //file for krylov logging
35  FILE* rFile;
36  //open and clear
37  rFile = fopen(out_reject_name, "w");
38  fclose(logFile);
39  fclose(rFile);
40  #endif
41 }
42 
43 void solver_log() {
44 }
45 
50 void initialize_solver(int num_threads) {
51  //Solves for the poles and residuals used for the Rational Approximants in the Krylov subspace methods
53 }
54 
59 const char* solver_name() {
60  const char* name = "exp4-int";
61  return name;
62 }
63 
64 void cleanup_solver(int num_threads) {
65 }
66 
67 #ifdef GENERATE_DOCS
68 }
69 #endif
Definition: exp4.c:32
void initialize_solver(int num_threads)
Initializes the solver.
Definition: exp4_init.c:50
void init_solver_log()
Initializes the Krylov subspace logging files (if LOG_OUTPUT is defined)
Definition: exp4_init.c:21
The generic initialization file for poles/hosts for RA based evaulation of the matrix exponential...
void find_poles_and_residuals()
get poles and residues for rational approximant to matrix exponential
const char * solver_name()
Returns a descriptive solver name.
Definition: exp4_init.c:59
void cleanup_solver(int num_threads)
Cleans up the created solvers.
Definition: exp4_init.c:64
void solver_log()
Executes solver specific logging tasks.
Definition: exp4_init.c:43