accelerInt  v0.1
exprb43_init.c
Go to the documentation of this file.
1 
10 #include "rational_approximant.h"
11 
12 #ifdef GENERATE_DOCS
13 namespace exprb43 {
14 #endif
15 
21  void init_solver_log() {
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  void solver_log() {}
43 
48  void initialize_solver(int num_threads) {
49  //Solves for the poles and residuals used for the Rational Approximants in the Krylov subspace methods
51  }
52 
57  const char* solver_name() {
58  const char* name = "exprb43-int";
59  return name;
60  }
61 
62  void cleanup_solver(int num_threads) {
63  }
64 
65 #ifdef GENERATE_DOCS
66 }
67 #endif
void init_solver_log()
Initializes the Krylov subspace logging files (if LOG_OUTPUT is defined)
Definition: exprb43_init.c:21
const char * solver_name()
Returns a descriptive solver name.
Definition: exprb43_init.c:57
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
void initialize_solver(int num_threads)
Initializes the solver.
Definition: exprb43_init.c:48
void cleanup_solver(int num_threads)
Cleans up the created solvers.
Definition: exprb43_init.c:62
void solver_log()
Executes solver specific logging tasks.
Definition: exprb43_init.c:42