#include <hdbcontr.h>
Public Member Functions | |
hdbcontr () | |
void | print (FILE *out) |
prints setup to file | |
void | read (XFILE *in) |
reads steup from file | |
long | restore_stat (void) |
returns whether restorage is required | |
long | save_stat (void) |
returns whether saving is required | |
~hdbcontr () | |
Public Attributes | |
hdbackupfmttype | hdbfmtr |
format of backup file for restoring | |
hdbackupfmttype | hdbfmts |
format of backup file for saving | |
char | hdbnamer [1001] |
backup filename for restoring | |
char | hdbnames [1001] |
backup filename for saving | |
hdbackuptype | hdbtype |
type of backup on harddisk | |
long | prec |
precision of real numbers in output files | |
answertype | rmold |
flag for removing old previous backup files (rmold=1 - i.e. only one set of backup file will be hold) | |
long | rmold_id |
id of previous backup files | |
sel | selelemr |
sel | selelems |
long ** | selother_id |
array of indices of starting positions for restoring of other array | |
sel * | selother_r |
selection of other components for restoring | |
sel * | selother_s |
selection of other components for saving |
The class stores the setup of backup for particular SIFEL modules.
Definition at line 17 of file hdbcontr.h.
hdbcontr | ( | ) |
The constructor initializes data to the default values - no backup is set by default
Created by Tomas Koudelka, 06.2008
Definition at line 14 of file hdbcontr.cpp.
References hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbtype, no, nohdb, rmold, rmold_id, selother_id, selother_r, selother_s, and text.
~hdbcontr | ( | ) |
The destructor releases allocated memory.
Created by Tomas Koudelka, 06.2008
Definition at line 33 of file hdbcontr.cpp.
References sel::n, selelemr, selother_id, selother_r, and selother_s.
void print | ( | FILE * | out | ) |
prints setup to file
The function prints the setup of the backup controller to the opened text file. The main usage is in the preprocessor.
out | - pointer to the opened text file |
Created by Tomas Koudelka, 06.2008
Definition at line 232 of file hdbcontr.cpp.
References hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbr_multiple, hdbr_nonloc, hdbr_single, hdbrs_multiple, hdbrs_nonloc, hdbrs_single, hdbs_multiple, hdbs_nonloc, hdbs_single, hdbtype, sel::n, nohdb, prec, sel::print(), print_err(), rmold, sel_all, sel_list, sel_no, sel_range, selelemr, selelems, selother_id, selother_r, selother_s, sel::st, and text.
Referenced by probdesct::print(), and probdesc::print().
void read | ( | XFILE * | in | ) |
reads steup from file
The function reads the setup of the backup controller form the opened text file.
in | - pointer to the opened text file |
Created by Tomas Koudelka, 06.2008
Definition at line 54 of file hdbcontr.cpp.
References answertype_kwdset(), hdbackupfmttype_kwdset(), hdbackuptype_kwdset(), hdbfmtr, hdbfmts, hdbnamer, hdbnames, hdbr_multiple, hdbr_nonloc, hdbr_single, hdbrs_multiple, hdbrs_nonloc, hdbrs_single, hdbs_multiple, hdbs_nonloc, hdbs_single, hdbtype, memset(), sel::n, prec, print_err(), sel::read(), rmold, sel_all, sel_list, sel_no, sel_range, selelemr, selelems, selother_id, selother_r, selother_s, sel::st, text, and xfscanf().
Referenced by probdesct::read(), and probdesc::read().
long restore_stat | ( | void | ) |
returns whether restorage is required
Function returns status of restorage
Returns:
0 | = no restorage is required 1 = restorage is required |
Created by Tomas Koudelka, 06.2008
Definition at line 385 of file hdbcontr.cpp.
References hdbr_multiple, hdbr_single, hdbrs_multiple, hdbrs_single, and hdbtype.
Referenced by arclengthrv(), linear_nonstat_radiation_solv_dform(), linear_nonstat_solv_dform(), linear_nonstat_solv_dform_subcycl(), linear_nonstat_solv_vform(), newton_raphson_coupl_new(), newton_raphson_gparcoupl_lin(), newton_raphson_gparcoupl_nonlin(), newton_raphson_parcoupl_lin(), newton_raphson_parcoupl_nonlin(), nonlin_nonstat_dform(), nonlinear_nonstat_solv(), nonstat_solver_dform_init(), nonstat_solver_init(), par_newton_raphson_gparcoupl_lin(), par_newton_raphson_gparcoupl_nonlin(), par_newton_raphson_parcoupl_lin(), par_newton_raphson_parcoupl_nonlin(), par_nonstat_solver_init(), par_nonstat_trfel_init(), par_solve_nonlinear_nonstationary_problem_dform(), par_solve_prob_constr_phases(), par_solve_timemech_prob(), par_visco_mefel_init(), par_visco_solver_init(), pmefel_init(), pmetr_init(), ptrfel_init(), solve_nonlinear_statics(), solve_prob_constr_phases(), visco_solver(), and visco_solver_init().
long save_stat | ( | void | ) |
returns whether saving is required
Function returns status of saving
Returns:
0 | = no backup required 1 = backup required |
Created by Tomas Koudelka, 06.2008
Definition at line 414 of file hdbcontr.cpp.
References hdbrs_multiple, hdbrs_single, hdbs_multiple, hdbs_single, and hdbtype.
Referenced by arclengthrv(), garclength(), gnewton_raphson(), gnewton_raphson2(), linear_nonstat_solv_vform(), newton_raphson_gparcoupl_lin(), newton_raphson_gparcoupl_nonlin(), newton_raphson_parcoupl_common_dt(), newton_raphson_parcoupl_nonlin(), nonlin_nonstat_dform(), nonlinear_nonstat_solv(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), par_newton_raphson_gparcoupl_lin(), par_newton_raphson_gparcoupl_nonlin(), par_newton_raphson_parcoupl_lin(), par_newton_raphson_parcoupl_nonlin(), par_one_step(), par_one_step_linear(), par_one_step_mefel(), par_one_step_nonlinear(), par_one_step_trfel_linear(), par_one_step_trfel_nonlinear(), par_solve_nonlinear_nonstationary_problem_dform(), pmefel_init(), pmetr_init(), ptrfel_init(), visco_solver(), and visco_solver2().
format of backup file for restoring
Definition at line 23 of file hdbcontr.h.
Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), restore_adjacip(), solver_restore(), and solvert_restore().
format of backup file for saving
Definition at line 25 of file hdbcontr.h.
Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), save_adjacip(), solver_save(), and solvert_save().
char hdbnamer[1001] |
backup filename for restoring
Definition at line 33 of file hdbcontr.h.
Referenced by hdbcontr(), pmefel_init(), pmetr_init(), print(), probdesc::probdesc(), probdesct::probdesct(), ptrfel_init(), read(), restore_adjacip(), mechmat::restore_intpoints_bin(), mechmat::restore_intpoints_txt(), transmat::restore_intpointst_bin(), transmat::restore_intpointst_txt(), solver_restore_binary_multiple(), solver_restore_binary_single(), solver_restore_text_multiple(), solver_restore_text_single(), solvert_restore_binary_multiple(), solvert_restore_binary_single(), solvert_restore_text_multiple(), and solvert_restore_text_single().
char hdbnames[1001] |
backup filename for saving
Definition at line 35 of file hdbcontr.h.
Referenced by hdbcontr(), pmefel_init(), pmetr_init(), print(), probdesc::probdesc(), probdesct::probdesct(), ptrfel_init(), read(), save_adjacip(), mechmat::save_intpoints_bin(), mechmat::save_intpoints_txt(), transmat::save_intpointst_bin(), transmat::save_intpointst_txt(), solver_restore_binary_multiple(), solver_restore_text_multiple(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), and solvert_save_text_single().
type of backup on harddisk
Definition at line 21 of file hdbcontr.h.
Referenced by hdbcontr(), linear_nonstat_radiation_solv_dform(), linear_nonstat_solv_dform(), linear_nonstat_solv_dform_subcycl(), newton_raphson_gparcoupl_lin(), newton_raphson_gparcoupl_nonlin(), newton_raphson_parcoupl_lin(), newton_raphson_parcoupl_nonlin(), par_newton_raphson_gparcoupl_lin(), par_newton_raphson_gparcoupl_nonlin(), par_newton_raphson_parcoupl_lin(), par_newton_raphson_parcoupl_nonlin(), par_solve_prob_constr_phases(), par_solve_timemech_prob(), print(), probdesc::probdesc(), probdesct::probdesct(), probdesct::read(), probdesc::read(), read(), restore_adjacip(), restore_stat(), save_adjacip(), save_stat(), solve_prob_constr_phases(), solver_restore_binary(), solver_restore_text(), solver_save_binary(), solver_save_text(), solvert_restore_binary(), solvert_restore_text(), solvert_save_binary(), and solvert_save_text().
long prec |
precision of real numbers in output files
Definition at line 31 of file hdbcontr.h.
Referenced by print(), probdesc::probdesc(), probdesct::probdesct(), read(), intpointst::save_data_txt(), intpoints::save_data_txt(), mechmat::save_intpoints_txt(), transmat::save_intpointst_txt(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_text_multiple(), and solvert_save_text_single().
flag for removing old previous backup files (rmold=1 - i.e. only one set of backup file will be hold)
Definition at line 27 of file hdbcontr.h.
Referenced by hdbcontr(), print(), read(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), and solvert_save_text_single().
long rmold_id |
id of previous backup files
Definition at line 29 of file hdbcontr.h.
Referenced by hdbcontr(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), and solvert_save_text_single().
Definition at line 36 of file hdbcontr.h.
Referenced by print(), read(), solver_restore_binary_multiple(), solver_restore_binary_single(), solver_restore_text_multiple(), solver_restore_text_single(), solvert_restore_binary_multiple(), solvert_restore_binary_single(), solvert_restore_text_multiple(), solvert_restore_text_single(), and ~hdbcontr().
Definition at line 37 of file hdbcontr.h.
Referenced by print(), read(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), and solvert_save_text_single().
long** selother_id |
array of indices of starting positions for restoring of other array
Definition at line 43 of file hdbcontr.h.
Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), solver_restore_binary_multiple(), solver_restore_binary_single(), solver_restore_text_multiple(), solver_restore_text_single(), solvert_restore_binary_multiple(), solvert_restore_binary_single(), solvert_restore_text_multiple(), solvert_restore_text_single(), and ~hdbcontr().
selection of other components for restoring
Definition at line 41 of file hdbcontr.h.
Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), solver_restore_binary_multiple(), solver_restore_binary_single(), solver_restore_text_multiple(), solver_restore_text_single(), solvert_restore_binary_multiple(), solvert_restore_binary_single(), solvert_restore_text_multiple(), solvert_restore_text_single(), and ~hdbcontr().
selection of other components for saving
Definition at line 39 of file hdbcontr.h.
Referenced by hdbcontr(), print(), probdesc::probdesc(), probdesct::probdesct(), read(), solver_save_binary_multiple(), solver_save_binary_single(), solver_save_text_multiple(), solver_save_text_single(), solvert_save_binary_multiple(), solvert_save_binary_single(), solvert_save_text_multiple(), solvert_save_text_single(), and ~hdbcontr().