00001 /************************************************************************ 00002 File pdh_control_intf.h - interface for control parameters and some general 00003 purpose functions from problem dependent module 00004 00005 Contains declarations of constants and interface routines: 00006 00007 pdr_module_introduce - to return the problem module's name 00008 pdr_get_problem_structure - to return pointer to problem structure 00009 pdr_problem_name - to return the problem's name 00010 pdr_ctrl_i_params - to return one of control parameters 00011 pdr_ctrl_d_params - to return one of control parameters 00012 pdr_adapt_i_params - to return parameters of adaptation 00013 pdr_adapt_d_params - to return parameters of adaptation 00014 pdr_time_i_params - to return parameters of time integration 00015 pdr_time_d_params - to return parameters of time integration 00016 pdr_set_time_i_params - to set parameters of time integration 00017 pdr_set_time_d_params - to set parameters of time integration 00018 pdr_lins_i_params - to return parameters of linear system solution 00019 pdr_lins_d_params - to return parameters of linear system solution 00020 pdr_change_data - to change some of control data 00021 00022 ------------------------------ 00023 History: 00024 02.2002 - Krzysztof Banas, initial version 00025 *************************************************************************/ 00026 00027 #ifndef _pdh_control_intf_ 00028 #define _pdh_control_intf_ 00029 00030 #include <stdio.h> 00031 00032 #ifdef __cplusplus 00033 extern "C" 00034 { 00035 #endif 00036 00045 extern void* pdr_get_problem_structure(int Problem_id); 00046 00047 /*------------------------------------------------------------ 00048 pdr_problem_name - to return the problem's name 00049 ------------------------------------------------------------*/ 00050 int pdr_problem_name( 00051 /* returns: >=0 - success code, <0 - error code */ 00052 int Problem_id, /* in: problem ID or 00053 PDC_USE_CURRENT_PROBLEM_ID for the current problem */ 00054 char* Problem_name /* out: the name of the problem solved */ 00055 ); 00056 00070 extern int pdr_ctrl_i_params( 00071 int Problem_id, 00072 int Num 00073 ); 00074 00081 extern double pdr_ctrl_d_params( 00082 int Problem_id, 00083 int Num 00084 ); 00085 00094 extern int pdr_adapt_i_params( 00095 int Problem_id, 00096 int Num 00097 ); 00098 00104 extern double pdr_adapt_d_params( 00105 int Problem_id, 00106 int Num 00107 ); 00108 00112 extern int pdr_time_i_params(int Problem_id, int Num); 00113 00117 extern double pdr_time_d_params(int Problem_id, int Num); 00118 00122 extern void pdr_set_time_i_params( 00123 int Problem_id, 00124 int Num, 00125 int Value 00126 ); 00127 00131 extern void pdr_set_time_d_params( 00132 int Problem_id, 00133 int Num, 00134 double Value 00135 ); 00136 00140 extern int pdr_lins_i_params( 00141 int Problem_id, 00142 int Num 00143 ); 00144 00148 extern double pdr_lins_d_params( 00149 int Problem_id, 00150 int Num 00151 ); 00152 00156 extern void pdr_change_data( 00157 int Problem_id 00158 ); 00159 // end of group 00161 00162 00163 #ifdef __cplusplus 00164 } 00165 #endif 00166 00167 #endif