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 TSDefaultUpdate(TS, PetscReal, PetscReal *); 107 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSDefaultPostStep(TS); 108 109 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetTimeStep(TS,PetscErrorCode(*)(TS,PetscReal*,void*),void*); 110 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoDefaultTimeStep(TS,PetscReal*,void*); 111 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoComputeTimeStep(TS,PetscReal *); 112 113 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetVerifyTimeStep(TS,PetscErrorCode(*)(TS,Vec,void*,PetscReal*,PetscTruth*),void*); 114 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoDefaultVerifyTimeStep(TS,Vec,void*,PetscReal*,PetscTruth*); 115 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoVerifyTimeStep(TS,Vec,PetscReal*,PetscTruth*); 116 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoSetTimeStepIncrement(TS,PetscReal); 117 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPseudoIncrementDtFromInitialDt(TS); 118 119 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSPythonSetType(TS,const char[]); 120 121 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeRHSFunction(TS,PetscReal,Vec,Vec); 122 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeRHSJacobian(TS,PetscReal,Vec,Mat*,Mat*,MatStructure*); 123 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeIFunction(TS,PetscReal,Vec,Vec,Vec); 124 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSComputeIJacobian(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*); 125 126 /* Dynamic creation and loading functions */ 127 extern PetscFList TSList; 128 extern PetscTruth TSRegisterAllCalled; 129 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetType(TS,const TSType*); 130 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetType(TS,const TSType); 131 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegister(const char[], const char[], const char[], PetscErrorCode (*)(TS)); 132 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegisterAll(const char[]); 133 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRegisterDestroy(void); 134 135 /*MC 136 TSRegisterDynamic - Adds a creation method to the TS package. 137 138 Synopsis: 139 PetscErrorCode TSRegisterDynamic(char *name, char *path, char *func_name, PetscErrorCode (*create_func)(TS)) 140 141 Not Collective 142 143 Input Parameters: 144 + name - The name of a new user-defined creation routine 145 . path - The path (either absolute or relative) of the library containing this routine 146 . func_name - The name of the creation routine 147 - create_func - The creation routine itself 148 149 Notes: 150 TSRegisterDynamic() may be called multiple times to add several user-defined tses. 151 152 If dynamic libraries are used, then the fourth input argument (create_func) is ignored. 153 154 Sample usage: 155 .vb 156 TSRegisterDynamic("my_ts", "/home/username/my_lib/lib/libO/solaris/libmy.a", "MyTSCreate", MyTSCreate); 157 .ve 158 159 Then, your ts type can be chosen with the procedural interface via 160 .vb 161 TS ts; 162 TSCreate(MPI_Comm, &ts); 163 TSSetType(ts, "my_ts") 164 .ve 165 or at runtime via the option 166 .vb 167 -ts_type my_ts 168 .ve 169 170 Notes: $PETSC_ARCH occuring in pathname will be replaced with appropriate values. 171 If your function is not being put into a shared library then use TSRegister() instead 172 173 Level: advanced 174 175 .keywords: TS, register 176 .seealso: TSRegisterAll(), TSRegisterDestroy() 177 M*/ 178 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 179 #define TSRegisterDynamic(a,b,c,d) TSRegister(a,b,c,0) 180 #else 181 #define TSRegisterDynamic(a,b,c,d) TSRegister(a,b,c,d) 182 #endif 183 184 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetSNES(TS,SNES*); 185 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetKSP(TS,KSP*); 186 187 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSView(TS,PetscViewer); 188 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSViewFromOptions(TS,const char[]); 189 190 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSetApplicationContext(TS,void *); 191 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGetApplicationContext(TS,void **); 192 193 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLGCreate(const char[],const char[],int,int,int,int,PetscDrawLG *); 194 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLG(TS,PetscInt,PetscReal,Vec,void *); 195 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSMonitorLGDestroy(PetscDrawLG); 196 197 /*S 198 TSGLAdapt - Abstract object that manages time-step adaptivity 199 200 Level: beginner 201 202 .seealso: TSGL, TSGLAdaptCreate(), TSGLAdaptType 203 S*/ 204 typedef struct _p_TSGLAdapt *TSGLAdapt; 205 206 /*E 207 TSGLAdaptType - String with the name of TSGLAdapt scheme or the creation function 208 with an optional dynamic library name, for example 209 http://www.mcs.anl.gov/petsc/lib.a:mytsgladaptcreate() 210 211 Level: beginner 212 213 .seealso: TSGLAdaptSetType(), TS 214 E*/ 215 #define TSGLAdaptType char* 216 #define TSGLADAPT_NONE "none" 217 #define TSGLADAPT_SIZE "size" 218 #define TSGLADAPT_BOTH "both" 219 220 /*MC 221 TSGLAdaptRegisterDynamic - adds a TSGLAdapt implementation 222 223 Synopsis: 224 PetscErrorCode TSGLAdaptRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 225 226 Not Collective 227 228 Input Parameters: 229 + name_scheme - name of user-defined adaptivity scheme 230 . path - path (either absolute or relative) the library containing this scheme 231 . name_create - name of routine to create method context 232 - routine_create - routine to create method context 233 234 Notes: 235 TSGLAdaptRegisterDynamic() may be called multiple times to add several user-defined families. 236 237 If dynamic libraries are used, then the fourth input argument (routine_create) 238 is ignored. 239 240 Sample usage: 241 .vb 242 TSGLAdaptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 243 "MySchemeCreate",MySchemeCreate); 244 .ve 245 246 Then, your scheme can be chosen with the procedural interface via 247 $ TSGLAdaptSetType(ts,"my_scheme") 248 or at runtime via the option 249 $ -ts_adapt_type my_scheme 250 251 Level: advanced 252 253 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 254 and others of the form ${any_environmental_variable} occuring in pathname will be 255 replaced with appropriate values. 256 257 .keywords: TSGLAdapt, register 258 259 .seealso: TSGLAdaptRegisterAll() 260 M*/ 261 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 262 # define TSGLAdaptRegisterDynamic(a,b,c,d) TSGLAdaptRegister(a,b,c,0) 263 #else 264 # define TSGLAdaptRegisterDynamic(a,b,c,d) TSGLAdaptRegister(a,b,c,d) 265 #endif 266 267 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegister(const char[],const char[],const char[],PetscErrorCode (*)(TSGLAdapt)); 268 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegisterAll(const char[]); 269 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptRegisterDestroy(void); 270 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptInitializePackage(const char[]); 271 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptFinalizePackage(void); 272 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptCreate(MPI_Comm,TSGLAdapt*); 273 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetType(TSGLAdapt,const TSGLAdaptType); 274 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetOptionsPrefix(TSGLAdapt,const char[]); 275 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptChoose(TSGLAdapt,PetscInt,const PetscInt[],const PetscReal[],const PetscReal[],PetscInt,PetscReal,PetscReal,PetscInt*,PetscReal*,PetscTruth*); 276 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptView(TSGLAdapt,PetscViewer); 277 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptSetFromOptions(TSGLAdapt); 278 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAdaptDestroy(TSGLAdapt); 279 280 /*E 281 TSGLAcceptType - String with the name of TSGLAccept scheme or the function 282 with an optional dynamic library name, for example 283 http://www.mcs.anl.gov/petsc/lib.a:mytsglaccept() 284 285 Level: beginner 286 287 .seealso: TSGLSetAcceptType(), TS 288 E*/ 289 #define TSGLAcceptType char* 290 #define TSGLACCEPT_ALWAYS "always" 291 292 typedef PetscErrorCode (*TSGLAcceptFunction)(TS,PetscReal,PetscReal,const PetscReal[],PetscTruth*); 293 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLAcceptRegister(const char[],const char[],const char[],TSGLAcceptFunction); 294 295 /*MC 296 TSGLAcceptRegisterDynamic - adds a TSGL acceptance scheme 297 298 Synopsis: 299 PetscErrorCode TSGLAcceptRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 300 301 Not Collective 302 303 Input Parameters: 304 + name_scheme - name of user-defined acceptance scheme 305 . path - path (either absolute or relative) the library containing this scheme 306 . name_create - name of routine to create method context 307 - routine_create - routine to create method context 308 309 Notes: 310 TSGLAcceptRegisterDynamic() may be called multiple times to add several user-defined families. 311 312 If dynamic libraries are used, then the fourth input argument (routine_create) 313 is ignored. 314 315 Sample usage: 316 .vb 317 TSGLAcceptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 318 "MySchemeCreate",MySchemeCreate); 319 .ve 320 321 Then, your scheme can be chosen with the procedural interface via 322 $ TSGLSetAcceptType(ts,"my_scheme") 323 or at runtime via the option 324 $ -ts_gl_accept_type my_scheme 325 326 Level: advanced 327 328 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 329 and others of the form ${any_environmental_variable} occuring in pathname will be 330 replaced with appropriate values. 331 332 .keywords: TSGL, TSGLAcceptType, register 333 334 .seealso: TSGLRegisterAll() 335 M*/ 336 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 337 # define TSGLAcceptRegisterDynamic(a,b,c,d) TSGLAcceptRegister(a,b,c,0) 338 #else 339 # define TSGLAcceptRegisterDynamic(a,b,c,d) TSGLAcceptRegister(a,b,c,d) 340 #endif 341 342 /*E 343 TSGLType - family of time integration method within the General Linear class 344 345 Level: beginner 346 347 .seealso: TSGLSetType(), TSGLRegister() 348 E*/ 349 #define TSGLType char* 350 #define TSGL_IRKS "irks" 351 352 /*MC 353 TSGLRegisterDynamic - adds a TSGL implementation 354 355 Synopsis: 356 PetscErrorCode TSGLRegisterDynamic(char *name_scheme,char *path,char *name_create,PetscErrorCode (*routine_create)(TS)) 357 358 Not Collective 359 360 Input Parameters: 361 + name_scheme - name of user-defined general linear scheme 362 . path - path (either absolute or relative) the library containing this scheme 363 . name_create - name of routine to create method context 364 - routine_create - routine to create method context 365 366 Notes: 367 TSGLRegisterDynamic() may be called multiple times to add several user-defined families. 368 369 If dynamic libraries are used, then the fourth input argument (routine_create) 370 is ignored. 371 372 Sample usage: 373 .vb 374 TSGLRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, 375 "MySchemeCreate",MySchemeCreate); 376 .ve 377 378 Then, your scheme can be chosen with the procedural interface via 379 $ TSGLSetType(ts,"my_scheme") 380 or at runtime via the option 381 $ -ts_gl_type my_scheme 382 383 Level: advanced 384 385 Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, 386 and others of the form ${any_environmental_variable} occuring in pathname will be 387 replaced with appropriate values. 388 389 .keywords: TSGL, register 390 391 .seealso: TSGLRegisterAll() 392 M*/ 393 #if defined(PETSC_USE_DYNAMIC_LIBRARIES) 394 # define TSGLRegisterDynamic(a,b,c,d) TSGLRegister(a,b,c,0) 395 #else 396 # define TSGLRegisterDynamic(a,b,c,d) TSGLRegister(a,b,c,d) 397 #endif 398 399 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegister(const char[],const char[],const char[],PetscErrorCode(*)(TS)); 400 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegisterAll(const char[]); 401 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLRegisterDestroy(void); 402 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLInitializePackage(const char[]); 403 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLFinalizePackage(void); 404 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLSetType(TS,const TSGLType); 405 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLGetAdapt(TS,TSGLAdapt*); 406 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSGLSetAcceptType(TS,const TSGLAcceptType); 407 408 /* 409 PETSc interface to Sundials 410 */ 411 #ifdef PETSC_HAVE_SUNDIALS 412 typedef enum { SUNDIALS_ADAMS=1,SUNDIALS_BDF=2} TSSundialsLmmType; 413 extern const char *TSSundialsLmmTypes[]; 414 typedef enum { SUNDIALS_MODIFIED_GS = 1,SUNDIALS_CLASSICAL_GS = 2 } TSSundialsGramSchmidtType; 415 extern const char *TSSundialsGramSchmidtTypes[]; 416 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetType(TS,TSSundialsLmmType); 417 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetPC(TS,PC*); 418 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetTolerance(TS,PetscReal,PetscReal); 419 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetIterations(TS,PetscInt *,PetscInt *); 420 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetGramSchmidtType(TS,TSSundialsGramSchmidtType); 421 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetGMRESRestart(TS,PetscInt); 422 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetLinearTolerance(TS,PetscReal); 423 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsSetExactFinalTime(TS,PetscTruth); 424 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsMonitorInternalSteps(TS,PetscTruth); 425 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSSundialsGetParameters(TS,PetscInt *,long*[],double*[]); 426 #endif 427 428 EXTERN PetscErrorCode PETSCTS_DLLEXPORT TSRKSetTolerance(TS,PetscReal); 429 430 PETSC_EXTERN_CXX_END 431 #endif 432