1 /* 2 User interface for the timestepping package. This package 3 is for use in solving time-dependent PDEs. 4 */ 5 #if !defined(__PETSCTS_H) 6 #define __PETSCTS_H 7 #include "petscsnes.h" 8 PETSC_EXTERN_CXX_BEGIN 9 10 /*S 11 TS - Abstract PETSc object that manages all time-steppers (ODE integrators) 12 13 Level: beginner 14 15 Concepts: ODE solvers 16 17 .seealso: TSCreate(), TSSetType(), TSType, SNES, KSP, PC 18 S*/ 19 typedef struct _p_TS* TS; 20 21 /*E 22 TSType - String with the name of a PETSc TS method or the creation function 23 with an optional dynamic library name, for example 24 http://www.mcs.anl.gov/petsc/lib.a:mytscreate() 25 26 Level: beginner 27 28 .seealso: TSSetType(), TS 29 E*/ 30 #define TSType char* 31 #define TSEULER "euler" 32 #define TSBEULER "beuler" 33 #define TSPSEUDO "pseudo" 34 #define TSCRANK_NICHOLSON "crank-nicholson" 35 #define TSSUNDIALS "sundials" 36 #define TSRUNGE_KUTTA "runge-kutta" 37 #define TSPYTHON "python" 38 #define TSTHETA "theta" 39 #define TSGL "gl" 40 #define TSSSP "ssp" 41 42 /*E 43 TSProblemType - Determines the type of problem this TS object is to be used to solve 44 45 Level: beginner 46 47 .seealso: TSCreate() 48 E*/ 49 typedef enum {TS_LINEAR,TS_NONLINEAR} TSProblemType; 50 51 /* Logging support */ 52 extern PetscCookie PETSCTS_DLLEXPORT TS_COOKIE; 53 54 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSInitializePackage(const char[]); 55 56 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSCreate(MPI_Comm,TS*); 57 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDestroy(TS); 58 59 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetProblemType(TS,TSProblemType); 60 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetProblemType(TS,TSProblemType*); 61 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorSet(TS,PetscErrorCode(*)(TS,PetscInt,PetscReal,Vec,void*),void *,PetscErrorCode (*)(void*)); 62 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorCancel(TS); 63 64 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetOptionsPrefix(TS,const char[]); 65 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSAppendOptionsPrefix(TS,const char[]); 66 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetOptionsPrefix(TS,const char *[]); 67 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetFromOptions(TS); 68 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetUp(TS); 69 70 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetSolution(TS,Vec); 71 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetSolution(TS,Vec*); 72 73 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetDuration(TS,PetscInt,PetscReal); 74 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetDuration(TS,PetscInt*,PetscReal*); 75 76 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorDefault(TS,PetscInt,PetscReal,Vec,void*); 77 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorSolution(TS,PetscInt,PetscReal,Vec,void*); 78 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSStep(TS,PetscInt *,PetscReal*); 79 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSolve(TS,Vec); 80 81 82 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetInitialTimeStep(TS,PetscReal,PetscReal); 83 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetTimeStep(TS,PetscReal*); 84 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetTime(TS,PetscReal*); 85 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetTime(TS,PetscReal); 86 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetTimeStepNumber(TS,PetscInt*); 87 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetTimeStep(TS,PetscReal); 88 89 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetRHSFunction(TS,PetscErrorCode (*)(TS,PetscReal,Vec,Vec,void*),void*); 90 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetMatrices(TS,Mat,PetscErrorCode (*)(TS,PetscReal,Mat*,Mat*,MatStructure*,void*),Mat,PetscErrorCode (*)(TS,PetscReal,Mat*,Mat*,MatStructure*,void*),MatStructure,void*); 91 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetMatrices(TS,Mat*,Mat*,void**); 92 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetRHSJacobian(TS,Mat,Mat,PetscErrorCode (*)(TS,PetscReal,Vec,Mat*,Mat*,MatStructure*,void*),void*); 93 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetRHSJacobian(TS,Mat*,Mat*,void**); 94 95 typedef PetscErrorCode (*TSIFunction)(TS,PetscReal,Vec,Vec,Vec,void*); 96 typedef PetscErrorCode (*TSIJacobian)(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*); 97 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetIFunction(TS,TSIFunction,void*); 98 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetIJacobian(TS,Mat,Mat,TSIJacobian,void*); 99 100 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDefaultComputeJacobianColor(TS,PetscReal,Vec,Mat*,Mat*,MatStructure*,void*); 101 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDefaultComputeJacobian(TS,PetscReal,Vec,Mat*,Mat*,MatStructure*,void*); 102 103 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetPreStep(TS, PetscErrorCode (*)(TS)); 104 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetPostStep(TS, PetscErrorCode (*)(TS)); 105 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDefaultPreStep(TS); 106 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDefaultPostStep(TS); 107 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPreStep(TS); 108 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPostStep(TS); 109 110 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetTimeStep(TS,PetscErrorCode(*)(TS,PetscReal*,void*),void*); 111 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoDefaultTimeStep(TS,PetscReal*,void*); 112 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoComputeTimeStep(TS,PetscReal *); 113 114 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetVerifyTimeStep(TS,PetscErrorCode(*)(TS,Vec,void*,PetscReal*,PetscTruth*),void*); 115 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoDefaultVerifyTimeStep(TS,Vec,void*,PetscReal*,PetscTruth*); 116 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoVerifyTimeStep(TS,Vec,PetscReal*,PetscTruth*); 117 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetTimeStepIncrement(TS,PetscReal); 118 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoIncrementDtFromInitialDt(TS); 119 120 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPythonSetType(TS,const char[]); 121 122 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeRHSFunction(TS,PetscReal,Vec,Vec); 123 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeRHSJacobian(TS,PetscReal,Vec,Mat*,Mat*,MatStructure*); 124 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeIFunction(TS,PetscReal,Vec,Vec,Vec); 125 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeIJacobian(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*); 126 127 /* Dynamic creation and loading functions */ 128 extern PetscFList TSList; 129 extern PetscTruth TSRegisterAllCalled; 130 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetType(TS,const TSType*); 131 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetType(TS,const TSType); 132 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegister(const char[], const char[], const char[], PetscErrorCode (*)(TS)); 133 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegisterAll(const char[]); 134 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegisterDestroy(void); 135 136 /*MC 137 TSRegisterDynamic - Adds a creation method to the TS package. 138 139 Synopsis: 140 PetscErrorCode TSRegisterDynamic(char *name, char *path, char *func_name, PetscErrorCode (*create_func)(TS)) 141 142 Not Collective 143 144 Input Parameters: 145 + name - The name of a new user-defined creation routine 146 . path - The path (either absolute or relative) of the library containing this routine 147 . func_name - The name of the creation routine 148 - create_func - The creation routine itself 149 150 Notes: 151 TSRegisterDynamic() may be called multiple times to add several user-defined tses. 152 153 If dynamic libraries are used, then the fourth input argument (create_func) is ignored. 154 155 Sample usage: 156 .vb 157 TSRegisterDynamic("my_ts", "/home/username/my_lib/lib/libO/solaris/libmy.a", "MyTSCreate", MyTSCreate); 158 .ve 159 160 Then, your ts type can be chosen with the procedural interface via 161 .vb 162 TS ts; 163 TSCreate(MPI_Comm, &ts); 164 TSSetType(ts, "my_ts") 165 .ve 166 or at runtime via the option 167 .vb 168 -ts_type my_ts 169 .ve 170 171 Notes: $PETSC_ARCH occuring in pathname will be replaced with appropriate values. 172 If your function is not being put into a shared library then use TSRegister() instead 173 174 Level: advanced 175 176 .keywords: TS, register 177 .seealso: TSRegisterAll(), TSRegisterDestroy() 178 M*/ 179 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 180 #define TSRegisterDynamic(a,b,c,d) TSRegister(a,b,c,0) 181 #else 182 #define TSRegisterDynamic(a,b,c,d) TSRegister(a,b,c,d) 183 #endif 184 185 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetSNES(TS,SNES*); 186 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetKSP(TS,KSP*); 187 188 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSView(TS,PetscViewer); 189 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSViewFromOptions(TS,const char[]); 190 191 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetApplicationContext(TS,void *); 192 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetApplicationContext(TS,void **); 193 194 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLGCreate(const char[],const char[],int,int,int,int,PetscDrawLG *); 195 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLG(TS,PetscInt,PetscReal,Vec,void *); 196 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLGDestroy(PetscDrawLG); 197 198 /*S 199 TSGLAdapt - Abstract object that manages time-step adaptivity 200 201 Level: beginner 202 203 .seealso: TSGL, TSGLAdaptCreate(), TSGLAdaptType 204 S*/ 205 typedef struct _p_TSGLAdapt *TSGLAdapt; 206 207 /*E 208 TSGLAdaptType - String with the name of TSGLAdapt scheme or the creation function 209 with an optional dynamic library name, for example 210 http://www.mcs.anl.gov/petsc/lib.a:mytsgladaptcreate() 211 212 Level: beginner 213 214 .seealso: TSGLAdaptSetType(), TS 215 E*/ 216 #define TSGLAdaptType char* 217 #define TSGLADAPT_NONE "none" 218 #define TSGLADAPT_SIZE "size" 219 #define TSGLADAPT_BOTH "both" 220 221 /*MC 222 TSGLAdaptRegisterDynamic - adds a TSGLAdapt implementation 223 224 Synopsis: 225 PetscErrorCode TSGLAdaptRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 226 227 Not Collective 228 229 Input Parameters: 230 + name_scheme - name of user-defined adaptivity scheme 231 . path - path (either absolute or relative) the library containing this scheme 232 . name_create - name of routine to create method context 233 - routine_create - routine to create method context 234 235 Notes: 236 TSGLAdaptRegisterDynamic() may be called multiple times to add several user-defined families. 237 238 If dynamic libraries are used, then the fourth input argument (routine_create) 239 is ignored. 240 241 Sample usage: 242 .vb 243 TSGLAdaptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 244 "MySchemeCreate",MySchemeCreate); 245 .ve 246 247 Then, your scheme can be chosen with the procedural interface via 248 $ TSGLAdaptSetType(ts,"my_scheme") 249 or at runtime via the option 250 $ -ts_adapt_type my_scheme 251 252 Level: advanced 253 254 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 255 and others of the form ${any_environmental_variable} occuring in pathname will be 256 replaced with appropriate values. 257 258 .keywords: TSGLAdapt, register 259 260 .seealso: TSGLAdaptRegisterAll() 261 M*/ 262 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 263 # define TSGLAdaptRegisterDynamic(a,b,c,d) TSGLAdaptRegister(a,b,c,0) 264 #else 265 # define TSGLAdaptRegisterDynamic(a,b,c,d) TSGLAdaptRegister(a,b,c,d) 266 #endif 267 268 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegister(const char[],const char[],const char[],PetscErrorCode (*)(TSGLAdapt)); 269 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegisterAll(const char[]); 270 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegisterDestroy(void); 271 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptInitializePackage(const char[]); 272 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptFinalizePackage(void); 273 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptCreate(MPI_Comm,TSGLAdapt*); 274 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetType(TSGLAdapt,const TSGLAdaptType); 275 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetOptionsPrefix(TSGLAdapt,const char[]); 276 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptChoose(TSGLAdapt,PetscInt,const PetscInt[],const PetscReal[],const PetscReal[],PetscInt,PetscReal,PetscReal,PetscInt*,PetscReal*,PetscTruth*); 277 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptView(TSGLAdapt,PetscViewer); 278 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetFromOptions(TSGLAdapt); 279 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptDestroy(TSGLAdapt); 280 281 /*E 282 TSGLAcceptType - String with the name of TSGLAccept scheme or the function 283 with an optional dynamic library name, for example 284 http://www.mcs.anl.gov/petsc/lib.a:mytsglaccept() 285 286 Level: beginner 287 288 .seealso: TSGLSetAcceptType(), TS 289 E*/ 290 #define TSGLAcceptType char* 291 #define TSGLACCEPT_ALWAYS "always" 292 293 typedef PetscErrorCode (*TSGLAcceptFunction)(TS,PetscReal,PetscReal,const PetscReal[],PetscTruth*); 294 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAcceptRegister(const char[],const char[],const char[],TSGLAcceptFunction); 295 296 /*MC 297 TSGLAcceptRegisterDynamic - adds a TSGL acceptance scheme 298 299 Synopsis: 300 PetscErrorCode TSGLAcceptRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 301 302 Not Collective 303 304 Input Parameters: 305 + name_scheme - name of user-defined acceptance scheme 306 . path - path (either absolute or relative) the library containing this scheme 307 . name_create - name of routine to create method context 308 - routine_create - routine to create method context 309 310 Notes: 311 TSGLAcceptRegisterDynamic() may be called multiple times to add several user-defined families. 312 313 If dynamic libraries are used, then the fourth input argument (routine_create) 314 is ignored. 315 316 Sample usage: 317 .vb 318 TSGLAcceptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 319 "MySchemeCreate",MySchemeCreate); 320 .ve 321 322 Then, your scheme can be chosen with the procedural interface via 323 $ TSGLSetAcceptType(ts,"my_scheme") 324 or at runtime via the option 325 $ -ts_gl_accept_type my_scheme 326 327 Level: advanced 328 329 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 330 and others of the form ${any_environmental_variable} occuring in pathname will be 331 replaced with appropriate values. 332 333 .keywords: TSGL, TSGLAcceptType, register 334 335 .seealso: TSGLRegisterAll() 336 M*/ 337 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 338 # define TSGLAcceptRegisterDynamic(a,b,c,d) TSGLAcceptRegister(a,b,c,0) 339 #else 340 # define TSGLAcceptRegisterDynamic(a,b,c,d) TSGLAcceptRegister(a,b,c,d) 341 #endif 342 343 /*E 344 TSGLType - family of time integration method within the General Linear class 345 346 Level: beginner 347 348 .seealso: TSGLSetType(), TSGLRegister() 349 E*/ 350 #define TSGLType char* 351 #define TSGL_IRKS "irks" 352 353 /*MC 354 TSGLRegisterDynamic - adds a TSGL implementation 355 356 Synopsis: 357 PetscErrorCode TSGLRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 358 359 Not Collective 360 361 Input Parameters: 362 + name_scheme - name of user-defined general linear scheme 363 . path - path (either absolute or relative) the library containing this scheme 364 . name_create - name of routine to create method context 365 - routine_create - routine to create method context 366 367 Notes: 368 TSGLRegisterDynamic() may be called multiple times to add several user-defined families. 369 370 If dynamic libraries are used, then the fourth input argument (routine_create) 371 is ignored. 372 373 Sample usage: 374 .vb 375 TSGLRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 376 "MySchemeCreate",MySchemeCreate); 377 .ve 378 379 Then, your scheme can be chosen with the procedural interface via 380 $ TSGLSetType(ts,"my_scheme") 381 or at runtime via the option 382 $ -ts_gl_type my_scheme 383 384 Level: advanced 385 386 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 387 and others of the form ${any_environmental_variable} occuring in pathname will be 388 replaced with appropriate values. 389 390 .keywords: TSGL, register 391 392 .seealso: TSGLRegisterAll() 393 M*/ 394 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 395 # define TSGLRegisterDynamic(a,b,c,d) TSGLRegister(a,b,c,0) 396 #else 397 # define TSGLRegisterDynamic(a,b,c,d) TSGLRegister(a,b,c,d) 398 #endif 399 400 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegister(const char[],const char[],const char[],PetscErrorCode(*)(TS)); 401 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegisterAll(const char[]); 402 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegisterDestroy(void); 403 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLInitializePackage(const char[]); 404 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLFinalizePackage(void); 405 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLSetType(TS,const TSGLType); 406 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLGetAdapt(TS,TSGLAdapt*); 407 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLSetAcceptType(TS,const TSGLAcceptType); 408 409 /* 410 PETSc interface to Sundials 411 */ 412 #ifdef PETSC_HAVE_SUNDIALS 413 typedef enum { SUNDIALS_ADAMS=1,SUNDIALS_BDF=2} TSSundialsLmmType; 414 extern const char *TSSundialsLmmTypes[]; 415 typedef enum { SUNDIALS_MODIFIED_GS = 1,SUNDIALS_CLASSICAL_GS = 2 } TSSundialsGramSchmidtType; 416 extern const char *TSSundialsGramSchmidtTypes[]; 417 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetType(TS,TSSundialsLmmType); 418 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetPC(TS,PC*); 419 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetTolerance(TS,PetscReal,PetscReal); 420 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetIterations(TS,PetscInt *,PetscInt *); 421 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetGramSchmidtType(TS,TSSundialsGramSchmidtType); 422 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetGMRESRestart(TS,PetscInt); 423 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetLinearTolerance(TS,PetscReal); 424 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetExactFinalTime(TS,PetscTruth); 425 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsMonitorInternalSteps(TS,PetscTruth); 426 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetParameters(TS,PetscInt *,long*[],double*[]); 427 #endif 428 429 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRKSetTolerance(TS,PetscReal); 430 431 PETSC_EXTERN_CXX_END 432 #endif 433