1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/b522cb8c110832b61be366220eb7433134308289/include/petscksp.h">Actual source code: petscksp.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-10-29T18:33:44+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#B22222">/*</font>
<a name="line2"> 2: </a><font color="#B22222"> Defines the interface functions for the Krylov subspace accelerators.</font>
<a name="line3"> 3: </a><font color="#B22222">*/</font>
<a name="line4"> 4: </a><font color="#A020F0">#pragma once</font>
<a name="line6"> 6: </a>#include <A href="../include/petscpc.h.html"><petscpc.h></A>
<a name="line8"> 8: </a><font color="#B22222">/* SUBMANSEC = <a href="../manualpages/KSP/KSP.html">KSP</a> */</font>
<a name="line10"> 10: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPInitializePackage.html">KSPInitializePackage</a>(void)</font></strong>;
<a name="line11"> 11: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFinalizePackage.html">KSPFinalizePackage</a>(void)</font></strong>;
<a name="line13"> 13: </a><font color="#B22222">/*S</font>
<a name="line14"> 14: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP.html">KSP</a> - Abstract PETSc object that manages the linear solves in PETSc (even those such as direct factorization-based solvers that</font>
<a name="line15"> 15: </a><font color="#B22222"> do not use Krylov accelerators).</font>
<a name="line17"> 17: </a><font color="#B22222"> Level: beginner</font>
<a name="line19"> 19: </a><font color="#B22222"> Notes:</font>
<a name="line20"> 20: </a><font color="#B22222"> When a direct solver is used, but no Krylov solver is used, the `<a href="../manualpages/KSP/KSP.html">KSP</a>` object is still used but with a</font>
<a name="line21"> 21: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` of `<a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a>` (or equivalently `<a href="../manualpages/KSP/KSPNONE.html">KSPNONE</a>`), meaning that only application of the preconditioner is used as the linear solver.</font>
<a name="line23"> 23: </a><font color="#B22222"> Use `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()` or the options database key `-ksp_type` to set the specific Krylov solver algorithm to use with a given `<a href="../manualpages/KSP/KSP.html">KSP</a>` object</font>
<a name="line25"> 25: </a><font color="#B22222"> The `<a href="../manualpages/PC/PC.html">PC</a>` object is used to control preconditioners in PETSc.</font>
<a name="line27"> 27: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>` can also be used to solve some least squares problems (over or under-determined linear systems), using, for example, `<a href="../manualpages/KSP/KSPLSQR.html">KSPLSQR</a>`, see `<a href="../manualpages/PetscRegressor/PETSCREGRESSORLINEAR.html">PETSCREGRESSORLINEAR</a>`</font>
<a name="line28"> 28: </a><font color="#B22222"> for additional methods that can be used to solve least squares problems and other linear regressions).</font>
<a name="line30"> 30: </a><font color="#B22222">.seealso: [](doc_linsolve), [](ch_ksp), `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()`, `<a href="../manualpages/KSP/KSPType.html">KSPType</a>`, `<a href="../manualpages/SNES/SNES.html">SNES</a>`, `<a href="../manualpages/TS/TS.html">TS</a>`, `<a href="../manualpages/PC/PC.html">PC</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPDestroy.html">KSPDestroy</a>()`, `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`</font>
<a name="line31"> 31: </a><font color="#B22222">S*/</font>
<a name="line32"> 32: </a><font color="#4169E1">typedef struct _p_KSP *<a href="../manualpages/KSP/KSP.html">KSP</a>;</font>
<a name="line34"> 34: </a><font color="#B22222">/*J</font>
<a name="line35"> 35: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPType.html">KSPType</a> - String with the name of a PETSc Krylov method. These are all the Krylov solvers that PETSc provides.</font>
<a name="line37"> 37: </a><font color="#B22222"> Level: beginner</font>
<a name="line39"> 39: </a><font color="#B22222">.seealso: [](doc_linsolve), [](ch_ksp), `<a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>()`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPRegister.html">KSPRegister</a>()`, `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPSetFromOptions.html">KSPSetFromOptions</a>()`</font>
<a name="line40"> 40: </a><font color="#B22222">J*/</font>
<a name="line41"> 41: </a><font color="#4169E1">typedef const char *<a href="../manualpages/KSP/KSPType.html">KSPType</a>;</font>
<a name="line42"> 42: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPRICHARDSON.html">KSPRICHARDSON</a> </font><font color="#666666">"richardson"</font><font color="#228B22"></font></strong>
<a name="line43"> 43: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a> </font><font color="#666666">"chebyshev"</font><font color="#228B22"></font></strong>
<a name="line44"> 44: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCG.html">KSPCG</a> </font><font color="#666666">"cg"</font><font color="#228B22"></font></strong>
<a name="line45"> 45: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGROPPCG.html">KSPGROPPCG</a> </font><font color="#666666">"groppcg"</font><font color="#228B22"></font></strong>
<a name="line46"> 46: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECG.html">KSPPIPECG</a> </font><font color="#666666">"pipecg"</font><font color="#228B22"></font></strong>
<a name="line47"> 47: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECGRR.html">KSPPIPECGRR</a> </font><font color="#666666">"pipecgrr"</font><font color="#228B22"></font></strong>
<a name="line48"> 48: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPELCG.html">KSPPIPELCG</a> </font><font color="#666666">"pipelcg"</font><font color="#228B22"></font></strong>
<a name="line49"> 49: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEPRCG.html">KSPPIPEPRCG</a> </font><font color="#666666">"pipeprcg"</font><font color="#228B22"></font></strong>
<a name="line50"> 50: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECG2.html">KSPPIPECG2</a> </font><font color="#666666">"pipecg2"</font><font color="#228B22"></font></strong>
<a name="line51"> 51: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGNE.html">KSPCGNE</a> </font><font color="#666666">"cgne"</font><font color="#228B22"></font></strong>
<a name="line52"> 52: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a> </font><font color="#666666">"nash"</font><font color="#228B22"></font></strong>
<a name="line53"> 53: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a> </font><font color="#666666">"stcg"</font><font color="#228B22"></font></strong>
<a name="line54"> 54: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGLTR.html">KSPGLTR</a> </font><font color="#666666">"gltr"</font><font color="#228B22"></font></strong>
<a name="line55"> 55: </a><strong><font color="#228B22">#define KSPCGNASH PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a>"</font><font color="#228B22">, ) </font><font color="#666666">"nash"</font><font color="#228B22"></font></strong>
<a name="line56"> 56: </a><strong><font color="#228B22">#define KSPCGSTCG PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a>"</font><font color="#228B22">, ) </font><font color="#666666">"stcg"</font><font color="#228B22"></font></strong>
<a name="line57"> 57: </a><strong><font color="#228B22">#define KSPCGGLTR PETSC_DEPRECATED_MACRO(3, 11, 0, </font><font color="#666666">"KSPSGLTR"</font><font color="#228B22">, ) </font><font color="#666666">"gltr"</font><font color="#228B22"></font></strong>
<a name="line58"> 58: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a> </font><font color="#666666">"fcg"</font><font color="#228B22"></font></strong>
<a name="line59"> 59: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a> </font><font color="#666666">"pipefcg"</font><font color="#228B22"></font></strong>
<a name="line60"> 60: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a> </font><font color="#666666">"gmres"</font><font color="#228B22"></font></strong>
<a name="line61"> 61: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEFGMRES.html">KSPPIPEFGMRES</a> </font><font color="#666666">"pipefgmres"</font><font color="#228B22"></font></strong>
<a name="line62"> 62: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFGMRES.html">KSPFGMRES</a> </font><font color="#666666">"fgmres"</font><font color="#228B22"></font></strong>
<a name="line63"> 63: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLGMRES.html">KSPLGMRES</a> </font><font color="#666666">"lgmres"</font><font color="#228B22"></font></strong>
<a name="line64"> 64: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPDGMRES.html">KSPDGMRES</a> </font><font color="#666666">"dgmres"</font><font color="#228B22"></font></strong>
<a name="line65"> 65: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPGMRES.html">KSPPGMRES</a> </font><font color="#666666">"pgmres"</font><font color="#228B22"></font></strong>
<a name="line66"> 66: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTCQMR.html">KSPTCQMR</a> </font><font color="#666666">"tcqmr"</font><font color="#228B22"></font></strong>
<a name="line67"> 67: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBCGS.html">KSPBCGS</a> </font><font color="#666666">"bcgs"</font><font color="#228B22"></font></strong>
<a name="line68"> 68: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPIBCGS.html">KSPIBCGS</a> </font><font color="#666666">"ibcgs"</font><font color="#228B22"></font></strong>
<a name="line69"> 69: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPQMRCGS.html">KSPQMRCGS</a> </font><font color="#666666">"qmrcgs"</font><font color="#228B22"></font></strong>
<a name="line70"> 70: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFBCGS.html">KSPFBCGS</a> </font><font color="#666666">"fbcgs"</font><font color="#228B22"></font></strong>
<a name="line71"> 71: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFBCGSR.html">KSPFBCGSR</a> </font><font color="#666666">"fbcgsr"</font><font color="#228B22"></font></strong>
<a name="line72"> 72: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBCGSL.html">KSPBCGSL</a> </font><font color="#666666">"bcgsl"</font><font color="#228B22"></font></strong>
<a name="line73"> 73: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEBCGS.html">KSPPIPEBCGS</a> </font><font color="#666666">"pipebcgs"</font><font color="#228B22"></font></strong>
<a name="line74"> 74: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGS.html">KSPCGS</a> </font><font color="#666666">"cgs"</font><font color="#228B22"></font></strong>
<a name="line75"> 75: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTFQMR.html">KSPTFQMR</a> </font><font color="#666666">"tfqmr"</font><font color="#228B22"></font></strong>
<a name="line76"> 76: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCR.html">KSPCR</a> </font><font color="#666666">"cr"</font><font color="#228B22"></font></strong>
<a name="line77"> 77: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPECR.html">KSPPIPECR</a> </font><font color="#666666">"pipecr"</font><font color="#228B22"></font></strong>
<a name="line78"> 78: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLSQR.html">KSPLSQR</a> </font><font color="#666666">"lsqr"</font><font color="#228B22"></font></strong>
<a name="line79"> 79: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a> </font><font color="#666666">"preonly"</font><font color="#228B22"></font></strong>
<a name="line80"> 80: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPNONE.html">KSPNONE</a> </font><font color="#666666">"none"</font><font color="#228B22"></font></strong>
<a name="line81"> 81: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPQCG.html">KSPQCG</a> </font><font color="#666666">"qcg"</font><font color="#228B22"></font></strong>
<a name="line82"> 82: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPBICG.html">KSPBICG</a> </font><font color="#666666">"bicg"</font><font color="#228B22"></font></strong>
<a name="line83"> 83: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a> </font><font color="#666666">"minres"</font><font color="#228B22"></font></strong>
<a name="line84"> 84: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPSYMMLQ.html">KSPSYMMLQ</a> </font><font color="#666666">"symmlq"</font><font color="#228B22"></font></strong>
<a name="line85"> 85: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPLCD.html">KSPLCD</a> </font><font color="#666666">"lcd"</font><font color="#228B22"></font></strong>
<a name="line86"> 86: </a><strong><font color="#228B22">#define KSPPYTHON </font><font color="#666666">"python"</font><font color="#228B22"></font></strong>
<a name="line87"> 87: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGCR.html">KSPGCR</a> </font><font color="#666666">"gcr"</font><font color="#228B22"></font></strong>
<a name="line88"> 88: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a> </font><font color="#666666">"pipegcr"</font><font color="#228B22"></font></strong>
<a name="line89"> 89: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPTSIRM.html">KSPTSIRM</a> </font><font color="#666666">"tsirm"</font><font color="#228B22"></font></strong>
<a name="line90"> 90: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPCGLS.html">KSPCGLS</a> </font><font color="#666666">"cgls"</font><font color="#228B22"></font></strong>
<a name="line91"> 91: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPFETIDP.html">KSPFETIDP</a> </font><font color="#666666">"fetidp"</font><font color="#228B22"></font></strong>
<a name="line92"> 92: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a> </font><font color="#666666">"hpddm"</font><font color="#228B22"></font></strong>
<a name="line94"> 94: </a><font color="#B22222">/* Logging support */</font>
<a name="line95"> 95: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> KSP_CLASSID;
<a name="line96"> 96: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> KSPGUESS_CLASSID;
<a name="line97"> 97: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> DMKSP_CLASSID;
<a name="line99"> 99: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line100">100: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetType.html">KSPSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPType.html">KSPType</a>)</font></strong>;
<a name="line101">101: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetType.html">KSPGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPType.html">KSPType</a> *)</font></strong>;
<a name="line102">102: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUp.html">KSPSetUp</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line103">103: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUpOnBlocks.html">KSPSetUpOnBlocks</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line104">104: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line105">105: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSolveTranspose.html">KSPSolveTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line106">106: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUseExplicitTranspose.html">KSPSetUseExplicitTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line107">107: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line108">108: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMatSolveTranspose.html">KSPMatSolveTranspose</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line109">109: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line110">110: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPSetMatSolveBlockSize(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n)
<a name="line111">111: </a>{
<a name="line112">112: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPSetMatSolveBatchSize.html">KSPSetMatSolveBatchSize</a>(ksp, n);
<a name="line113">113: </a>}
<a name="line114">114: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line115">115: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPGetMatSolveBlockSize(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *n)
<a name="line116">116: </a>{
<a name="line117">117: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGetMatSolveBatchSize.html">KSPGetMatSolveBatchSize</a>(ksp, n);
<a name="line118">118: </a>}
<a name="line119">119: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPReset.html">KSPReset</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line120">120: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPResetViewers.html">KSPResetViewers</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line121">121: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPDestroy.html">KSPDestroy</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line122">122: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetReusePreconditioner.html">KSPSetReusePreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line123">123: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetReusePreconditioner.html">KSPGetReusePreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line124">124: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetSkipPCSetFromOptions.html">KSPSetSkipPCSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line125">125: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCheckSolve.html">KSPCheckSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line127">127: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPList;
<a name="line128">128: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPGuessList;
<a name="line129">129: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorList;
<a name="line130">130: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorCreateList;
<a name="line131">131: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> KSPMonitorDestroyList;
<a name="line132">132: </a><strong><font color="#4169E1"><a name="KSPRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRegister.html">KSPRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>);
<a name="line134">134: </a><font color="#B22222">/*S</font>
<a name="line135">135: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> - A function prototype for functions provided to `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`</font>
<a name="line137">137: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line138">138: </a><font color="#B22222">+ ksp - iterative solver obtained from `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`</font>
<a name="line139">139: </a><font color="#B22222">. it - iteration number</font>
<a name="line140">140: </a><font color="#B22222">. rnorm - (estimated) 2-norm of (preconditioned) residual</font>
<a name="line141">141: </a><font color="#B22222">- ctx - `PetscViewerAndFormat` object</font>
<a name="line143">143: </a><font color="#B22222"> Level: beginner</font>
<a name="line145">145: </a><font color="#B22222"> Note:</font>
<a name="line146">146: </a><font color="#B22222"> This is a `<a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a>` specialized for a context of `PetscViewerAndFormat`</font>
<a name="line148">148: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`, `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`, `<a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a>`, `<a href="../manualpages/KSP/KSPMonitorRegisterCreateFn.html">KSPMonitorRegisterCreateFn</a>`, `<a href="../manualpages/KSP/KSPMonitorRegisterDestroyFn.html">KSPMonitorRegisterDestroyFn</a>`</font>
<a name="line149">149: </a><font color="#B22222">S*/</font>
<a name="line150">150: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> it, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *ctx)</font></strong>;
<a name="line152">152: </a><font color="#B22222">/*S</font>
<a name="line153">153: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPMonitorRegisterCreateFn.html">KSPMonitorRegisterCreateFn</a> - A function prototype for functions that do the creation when provided to `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`</font>
<a name="line155">155: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line156">156: </a><font color="#B22222">+ viewer - the viewer to be used with the `<a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a>`</font>
<a name="line157">157: </a><font color="#B22222">. format - the format of the viewer</font>
<a name="line158">158: </a><font color="#B22222">. ctx - a context for the monitor</font>
<a name="line159">159: </a><font color="#B22222">- result - a `PetscViewerAndFormat` object</font>
<a name="line161">161: </a><font color="#B22222"> Level: beginner</font>
<a name="line163">163: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`, `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`, `<a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a>`, `<a href="../manualpages/KSP/KSPMonitorRegisterDestroyFn.html">KSPMonitorRegisterDestroyFn</a>`</font>
<a name="line164">164: </a><font color="#B22222">S*/</font>
<a name="line165">165: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorRegisterCreateFn.html">KSPMonitorRegisterCreateFn</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> viewer, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> format, void *ctx, PetscViewerAndFormat **result)</font></strong>;
<a name="line167">167: </a><font color="#B22222">/*S</font>
<a name="line168">168: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPMonitorRegisterDestroyFn.html">KSPMonitorRegisterDestroyFn</a> - A function prototype for functions that do the after use destruction when provided to `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`</font>
<a name="line170">170: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line171">171: </a><font color="#B22222">. vf - a `PetscViewerAndFormat` object to be destroyed, including any context</font>
<a name="line173">173: </a><font color="#B22222"> Level: beginner</font>
<a name="line175">175: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`, `<a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>()`, `<a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a>`, `<a href="../manualpages/KSP/KSPMonitorRegisterCreateFn.html">KSPMonitorRegisterCreateFn</a>`</font>
<a name="line176">176: </a><font color="#B22222">S*/</font>
<a name="line177">177: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorRegisterDestroyFn.html">KSPMonitorRegisterDestroyFn</a>(PetscViewerAndFormat **result)</font></strong>;
<a name="line179">179: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorRegister.html">KSPMonitorRegister</a>(const char[], <a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> *, <a href="../manualpages/KSP/KSPMonitorRegisterCreateFn.html">KSPMonitorRegisterCreateFn</a> *, <a href="../manualpages/KSP/KSPMonitorRegisterDestroyFn.html">KSPMonitorRegisterDestroyFn</a> *)</font></strong>;
<a name="line181">181: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a>)</font></strong>;
<a name="line182">182: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetPCSide.html">KSPGetPCSide</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a> *)</font></strong>;
<a name="line183">183: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line184">184: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetTolerances.html">KSPGetTolerances</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line185">185: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetMinimumIterations.html">KSPSetMinimumIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line186">186: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMinimumIterations.html">KSPGetMinimumIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line187">187: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetInitialGuessNonzero.html">KSPSetInitialGuessNonzero</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line188">188: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetInitialGuessNonzero.html">KSPGetInitialGuessNonzero</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line189">189: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetErrorIfNotConverged.html">KSPSetErrorIfNotConverged</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line190">190: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetErrorIfNotConverged.html">KSPGetErrorIfNotConverged</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line191">191: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeEigenvalues.html">KSPSetComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line192">192: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeRitz.html">KSPSetComputeRitz</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line193">193: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetComputeEigenvalues.html">KSPGetComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line194">194: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeSingularValues.html">KSPSetComputeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line195">195: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetComputeSingularValues.html">KSPGetComputeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line196">196: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetRhs.html">KSPGetRhs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line197">197: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetSolution.html">KSPGetSolution</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line198">198: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetResidualNorm.html">KSPGetResidualNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line199">199: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetIterationNumber.html">KSPGetIterationNumber</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line200">200: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetTotalIterations.html">KSPGetTotalIterations</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line201">201: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> **, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> **)</font></strong>;
<a name="line202">202: </a>PETSC_DEPRECATED_FUNCTION(3, 6, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPGetVecs(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Vec/Vec.html">Vec</a> **x, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> m, <a href="../manualpages/Vec/Vec.html">Vec</a> **y)
<a name="line203">203: </a>{
<a name="line204">204: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPCreateVecs.html">KSPCreateVecs</a>(ksp, n, x, m, y);
<a name="line205">205: </a>}
<a name="line207">207: </a><font color="#B22222">/*S</font>
<a name="line208">208: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPPSolveFn.html">KSPPSolveFn</a> - A function prototype for functions provided to `<a href="../manualpages/KSP/KSPSetPreSolve.html">KSPSetPreSolve</a>()` and `<a href="../manualpages/KSP/KSPSetPostSolve.html">KSPSetPostSolve</a>()`</font>
<a name="line210">210: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line211">211: </a><font color="#B22222">+ ksp - the `<a href="../manualpages/KSP/KSP.html">KSP</a>` context</font>
<a name="line212">212: </a><font color="#B22222">. rhs - the right-hand side vector</font>
<a name="line213">213: </a><font color="#B22222">. x - the solution vector</font>
<a name="line214">214: </a><font color="#B22222">- ctx - optional context that was provided with `<a href="../manualpages/KSP/KSPSetPreSolve.html">KSPSetPreSolve</a>()` or `<a href="../manualpages/KSP/KSPSetPostSolve.html">KSPSetPostSolve</a>()`</font>
<a name="line216">216: </a><font color="#B22222"> Level: intermediate</font>
<a name="line218">218: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetPreSolve.html">KSPSetPreSolve</a>()`, `<a href="../manualpages/KSP/KSPSetPostSolve.html">KSPSetPostSolve</a>()`, `<a href="../manualpages/KSP/PCShellPSolveFn.html">PCShellPSolveFn</a>`</font>
<a name="line219">219: </a><font color="#B22222">S*/</font>
<a name="line220">220: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPSolveFn.html">KSPPSolveFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> rhs, <a href="../manualpages/Vec/Vec.html">Vec</a> x, void *ctx)</font></strong>;
<a name="line222">222: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPreSolve.html">KSPSetPreSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPPSolveFn.html">KSPPSolveFn</a> *, void *)</font></strong>;
<a name="line223">223: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPostSolve.html">KSPSetPostSolve</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPPSolveFn.html">KSPPSolveFn</a> *, void *)</font></strong>;
<a name="line225">225: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetPC.html">KSPSetPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line226">226: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetPC.html">KSPGetPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line227">227: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetNestLevel.html">KSPSetNestLevel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line228">228: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetNestLevel.html">KSPGetNestLevel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line230">230: </a><font color="#B22222">/*S</font>
<a name="line231">231: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a> - A function prototype for functions provided to `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`</font>
<a name="line233">233: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line234">234: </a><font color="#B22222">+ ksp - iterative solver obtained from `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`</font>
<a name="line235">235: </a><font color="#B22222">. it - iteration number</font>
<a name="line236">236: </a><font color="#B22222">. rnorm - (estimated) 2-norm of (preconditioned) residual</font>
<a name="line237">237: </a><font color="#B22222">- ctx - optional monitoring context, as provided with `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`</font>
<a name="line239">239: </a><font color="#B22222"> Level: beginner</font>
<a name="line241">241: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>()`</font>
<a name="line242">242: </a><font color="#B22222">S*/</font>
<a name="line243">243: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> it, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, void *ctx)</font></strong>;
<a name="line245">245: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitor.html">KSPMonitor</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line246">246: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSet.html">KSPMonitorSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPMonitorFn.html">KSPMonitorFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line247">247: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorCancel.html">KSPMonitorCancel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line248">248: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetMonitorContext.html">KSPGetMonitorContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line249">249: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetResidualHistory.html">KSPGetResidualHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line250">250: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetResidualHistory.html">KSPSetResidualHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line251">251: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetErrorHistory.html">KSPGetErrorHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line252">252: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetErrorHistory.html">KSPSetErrorHistory</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line254">254: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPBuildSolutionDefault(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line255">255: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildResidualDefault.html">KSPBuildResidualDefault</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line256">256: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPDestroyDefault(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line257">257: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetWorkVecs.html">KSPSetWorkVecs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line259">259: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCKSPGetKSP.html">PCKSPGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line260">260: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCKSPSetKSP.html">PCKSPSetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line261">261: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJacobiGetSubKSP.html">PCBJacobiGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line262">262: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCASMGetSubKSP.html">PCASMGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line263">263: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCGASMGetSubKSP.html">PCGASMGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line264">264: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PCPatchGetSubKSP(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line265">265: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCFieldSplitGetSubKSP.html">PCFieldSplitGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line266">266: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCFieldSplitSchurGetSubKSP.html">PCFieldSplitSchurGetSubKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/KSP/KSP.html">KSP</a> *[])</font></strong>;
<a name="line267">267: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmoother.html">PCMGGetSmoother</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line268">268: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmootherDown.html">PCMGGetSmootherDown</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line269">269: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetSmootherUp.html">PCMGGetSmootherUp</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line270">270: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetCoarseSolve.html">PCMGGetCoarseSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line271">271: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCGalerkinGetKSP.html">PCGalerkinGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line272">272: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCDeflationGetCoarseKSP.html">PCDeflationGetCoarseKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line274">274: </a><font color="#B22222">/*S</font>
<a name="line275">275: </a><font color="#B22222"> <a href="../manualpages/KSP/PCMGCoarseSpaceConstructorFn.html">PCMGCoarseSpaceConstructorFn</a> - A function prototype for functions registered with `<a href="../manualpages/PC/PCMGRegisterCoarseSpaceConstructor.html">PCMGRegisterCoarseSpaceConstructor</a>()`</font>
<a name="line277">277: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line278">278: </a><font color="#B22222">+ pc - The `<a href="../manualpages/PC/PC.html">PC</a>` object</font>
<a name="line279">279: </a><font color="#B22222">. l - The multigrid level, 0 is the coarse level</font>
<a name="line280">280: </a><font color="#B22222">. dm - The `<a href="../manualpages/DM/DM.html">DM</a>` for this level</font>
<a name="line281">281: </a><font color="#B22222">. smooth - The level smoother</font>
<a name="line282">282: </a><font color="#B22222">. Nc - The size of the coarse space</font>
<a name="line283">283: </a><font color="#B22222">. initGuess - Basis for an initial guess for the space</font>
<a name="line284">284: </a><font color="#B22222">- coarseSp - A basis for the computed coarse space</font>
<a name="line286">286: </a><font color="#B22222"> Level: beginner</font>
<a name="line288">288: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/PC/PCMGRegisterCoarseSpaceConstructor.html">PCMGRegisterCoarseSpaceConstructor</a>()`, `<a href="../manualpages/PC/PCMGGetCoarseSpaceConstructor.html">PCMGGetCoarseSpaceConstructor</a>()`</font>
<a name="line289">289: </a><font color="#B22222">S*/</font>
<a name="line290">290: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/PCMGCoarseSpaceConstructorFn.html">PCMGCoarseSpaceConstructorFn</a>(<a href="../manualpages/PC/PC.html">PC</a> pc, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> l, <a href="../manualpages/DM/DM.html">DM</a> dm, <a href="../manualpages/KSP/KSP.html">KSP</a> smooth, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> Nc, <a href="../manualpages/Mat/Mat.html">Mat</a> initGuess, <a href="../manualpages/Mat/Mat.html">Mat</a> *coarseSp)</font></strong>;
<a name="line292">292: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> PCMGCoarseList;
<a name="line293">293: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGRegisterCoarseSpaceConstructor.html">PCMGRegisterCoarseSpaceConstructor</a>(const char[], <a href="../manualpages/KSP/PCMGCoarseSpaceConstructorFn.html">PCMGCoarseSpaceConstructorFn</a> *)</font></strong>;
<a name="line294">294: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMGGetCoarseSpaceConstructor.html">PCMGGetCoarseSpaceConstructor</a>(const char[], <a href="../manualpages/KSP/PCMGCoarseSpaceConstructorFn.html">PCMGCoarseSpaceConstructorFn</a> **)</font></strong>;
<a name="line296">296: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildSolution.html">KSPBuildSolution</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line297">297: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBuildResidual.html">KSPBuildResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line299">299: </a><font color="#B22222">/*E</font>
<a name="line300">300: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a> - Which kind of Chebyshev polynomial to use with `<a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a>`</font>
<a name="line302">302: </a><font color="#B22222"> Values:</font>
<a name="line303">303: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FIRST</a>` - "classic" first-kind Chebyshev polynomial</font>
<a name="line304">304: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FOURTH</a>` - fourth-kind Chebyshev polynomial</font>
<a name="line305">305: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_OPT_FOURTH</a>` - optimized fourth-kind Chebyshev polynomial</font>
<a name="line307">307: </a><font color="#B22222"> Level: intermediate</font>
<a name="line309">309: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCHEBYSHEV.html">KSPCHEBYSHEV</a>`, `<a href="../manualpages/KSP/KSPChebyshevSetKind.html">KSPChebyshevSetKind</a>()`, `<a href="../manualpages/KSP/KSPChebyshevGetKind.html">KSPChebyshevGetKind</a>()`</font>
<a name="line310">310: </a><font color="#B22222">E*/</font>
<a name="line311">311: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line312">312: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FIRST</a>,
<a name="line313">313: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_FOURTH</a>,
<a name="line314">314: </a> <a href="../manualpages/KSP/KSPChebyshevKind.html">KSP_CHEBYSHEV_OPT_FOURTH</a>
<a name="line315">315: </a>} <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a>;
<a name="line317">317: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRichardsonSetScale.html">KSPRichardsonSetScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line318">318: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPRichardsonSetSelfScale.html">KSPRichardsonSetSelfScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line319">319: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevSetEigenvalues.html">KSPChebyshevSetEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line320">320: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigSet.html">KSPChebyshevEstEigSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line321">321: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigSetUseNoisy.html">KSPChebyshevEstEigSetUseNoisy</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line322">322: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevSetKind.html">KSPChebyshevSetKind</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a>)</font></strong>;
<a name="line323">323: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevGetKind.html">KSPChebyshevGetKind</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPChebyshevKind.html">KSPChebyshevKind</a> *)</font></strong>;
<a name="line324">324: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPChebyshevEstEigGetKSP.html">KSPChebyshevEstEigGetKSP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line325">325: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeExtremeSingularValues.html">KSPComputeExtremeSingularValues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line326">326: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeEigenvalues.html">KSPComputeEigenvalues</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line327">327: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeEigenvaluesExplicitly.html">KSPComputeEigenvaluesExplicitly</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[])</font></strong>;
<a name="line328">328: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeRitz.html">KSPComputeRitz</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Vec/Vec.html">Vec</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[], <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>[])</font></strong>;
<a name="line330">330: </a><font color="#B22222">/*E</font>
<a name="line332">332: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> - Define how stored directions are used to orthogonalize in flexible conjugate directions (FCD) methods</font>
<a name="line334">334: </a><font color="#B22222"> Values:</font>
<a name="line335">335: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_STANDARD</a>` - uses all (up to mmax) stored directions</font>
<a name="line336">336: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_NOTAY</a>` - uses the last max(1,mod(i,mmax)) stored directions at iteration i=0,1..</font>
<a name="line338">338: </a><font color="#B22222"> Level: intermediate</font>
<a name="line340">340: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a>`, `<a href="../manualpages/KSP/KSPFCGSetTruncationType.html">KSPFCGSetTruncationType</a>()`, `<a href="../manualpages/KSP/KSPFCGGetTruncationType.html">KSPFCGGetTruncationType</a>()`</font>
<a name="line341">341: </a><font color="#B22222">E*/</font>
<a name="line342">342: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line343">343: </a> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_STANDARD</a>,
<a name="line344">344: </a> <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSP_FCD_TRUNC_TYPE_NOTAY</a>
<a name="line345">345: </a>} <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>;
<a name="line346">346: </a>PETSC_EXTERN const char *const KSPFCDTruncationTypes[];
<a name="line348">348: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetMmax.html">KSPFCGSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line349">349: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetMmax.html">KSPFCGGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line350">350: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetNprealloc.html">KSPFCGSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line351">351: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetNprealloc.html">KSPFCGGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line352">352: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGSetTruncationType.html">KSPFCGSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line353">353: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFCGGetTruncationType.html">KSPFCGGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line355">355: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetMmax.html">KSPPIPEFCGSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line356">356: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetMmax.html">KSPPIPEFCGGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line357">357: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetNprealloc.html">KSPPIPEFCGSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line358">358: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetNprealloc.html">KSPPIPEFCGGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line359">359: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGSetTruncationType.html">KSPPIPEFCGSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line360">360: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFCGGetTruncationType.html">KSPPIPEFCGGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line362">362: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetMmax.html">KSPPIPEGCRSetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line363">363: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetMmax.html">KSPPIPEGCRGetMmax</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line364">364: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetNprealloc.html">KSPPIPEGCRSetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line365">365: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetNprealloc.html">KSPPIPEGCRGetNprealloc</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line366">366: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetTruncationType.html">KSPPIPEGCRSetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a>)</font></strong>;
<a name="line367">367: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetTruncationType.html">KSPPIPEGCRGetTruncationType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFCDTruncationType.html">KSPFCDTruncationType</a> *)</font></strong>;
<a name="line368">368: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetUnrollW.html">KSPPIPEGCRSetUnrollW</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line369">369: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRGetUnrollW.html">KSPPIPEGCRGetUnrollW</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line371">371: </a><font color="#B22222">/*S</font>
<a name="line372">372: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> - A prototype of a function used to modify the preconditioner during the use of flexible `<a href="../manualpages/KSP/KSP.html">KSP</a>` methods, such as `<a href="../manualpages/KSP/KSPFGMRES.html">KSPFGMRES</a>`</font>
<a name="line374">374: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line375">375: </a><font color="#B22222">+ ksp - the `<a href="../manualpages/KSP/KSP.html">KSP</a>` context being used.</font>
<a name="line376">376: </a><font color="#B22222">. total_its - the total number of iterations that have occurred.</font>
<a name="line377">377: </a><font color="#B22222">. local_its - the number of iterations since last restart if applicable</font>
<a name="line378">378: </a><font color="#B22222">. res_norm - the current residual norm</font>
<a name="line379">379: </a><font color="#B22222">- ctx - optional context variable set with `<a href="../manualpages/KSP/KSPFlexibleSetModifyPC.html">KSPFlexibleSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPPIPEGCRSetModifyPC.html">KSPPIPEGCRSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPGCRSetModifyPC.html">KSPGCRSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPFGMRESSetModifyPC.html">KSPFGMRESSetModifyPC</a>()`</font>
<a name="line381">381: </a><font color="#B22222"> Level: beginner</font>
<a name="line383">383: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPFlexibleSetModifyPC.html">KSPFlexibleSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPPIPEGCRSetModifyPC.html">KSPPIPEGCRSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPGCRSetModifyPC.html">KSPGCRSetModifyPC</a>()`, `<a href="../manualpages/KSP/KSPFGMRESSetModifyPC.html">KSPFGMRESSetModifyPC</a>()`</font>
<a name="line384">384: </a><font color="#B22222">S*/</font>
<a name="line385">385: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> total_its, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> local_its, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> res_norm, void *ctx)</font></strong>;
<a name="line387">387: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFlexibleSetModifyPC.html">KSPFlexibleSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line388">388: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEGCRSetModifyPC.html">KSPPIPEGCRSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line390">390: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetRestart.html">KSPGMRESSetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line391">391: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetRestart.html">KSPGMRESGetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line392">392: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetHapTol.html">KSPGMRESSetHapTol</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line393">393: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetBreakdownTolerance.html">KSPGMRESSetBreakdownTolerance</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line395">395: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetPreAllocateVectors.html">KSPGMRESSetPreAllocateVectors</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line396">396: </a><strong><font color="#4169E1"><a name="KSPGMRESSetOrthogonalization"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>);
<a name="line397">397: </a><strong><font color="#4169E1"><a name="KSPGMRESGetOrthogonalization"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (**)(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>);
<a name="line398">398: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line399">399: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line401">401: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLGMRESSetAugDim.html">KSPLGMRESSetAugDim</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line402">402: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLGMRESSetConstant.html">KSPLGMRESSetConstant</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line404">404: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPIPEFGMRESSetShift.html">KSPPIPEFGMRESSetShift</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>)</font></strong>;
<a name="line406">406: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRSetRestart.html">KSPGCRSetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line407">407: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRGetRestart.html">KSPGCRGetRestart</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line408">408: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGCRSetModifyPC.html">KSPGCRSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line410">410: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESSetRadius.html">KSPMINRESSetRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line411">411: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESGetUseQLP.html">KSPMINRESGetUseQLP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line412">412: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMINRESSetUseQLP.html">KSPMINRESSetUseQLP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line414">414: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPGetInnerBDDC.html">KSPFETIDPGetInnerBDDC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line415">415: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPSetInnerBDDC.html">KSPFETIDPSetInnerBDDC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line416">416: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPGetInnerKSP.html">KSPFETIDPGetInnerKSP</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line417">417: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFETIDPSetPressureOperator.html">KSPFETIDPSetPressureOperator</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line419">419: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line420">420: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line421">421: </a><font color="#A020F0">#if <a href="../manualpages/Sys/PetscDefined.html">PetscDefined</a>(HAVE_HPDDM)</font>
<a name="line422">422: </a>PETSC_DEPRECATED_FUNCTION(3, 18, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMSetDeflationSpace(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> U)
<a name="line423">423: </a>{
<a name="line424">424: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPHPDDMSetDeflationMat.html">KSPHPDDMSetDeflationMat</a>(ksp, U);
<a name="line425">425: </a>}
<a name="line426">426: </a>PETSC_DEPRECATED_FUNCTION(3, 18, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMGetDeflationSpace(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> *U)
<a name="line427">427: </a>{
<a name="line428">428: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPHPDDMGetDeflationMat.html">KSPHPDDMGetDeflationMat</a>(ksp, U);
<a name="line429">429: </a>}
<a name="line430">430: </a><font color="#A020F0">#endif</font>
<a name="line431">431: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPHPDDMMatSolve(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> B, <a href="../manualpages/Mat/Mat.html">Mat</a> X)
<a name="line432">432: </a>{
<a name="line433">433: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMatSolve.html">KSPMatSolve</a>(ksp, B, X);
<a name="line434">434: </a>}
<a name="line435">435: </a><font color="#B22222">/*E</font>
<a name="line436">436: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a> - Type of Krylov method used by `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line438">438: </a><font color="#B22222"> Values:</font>
<a name="line439">439: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GMRES</a>` (default) - Generalized Minimal Residual method</font>
<a name="line440">440: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGMRES</a>` - block GMRES</font>
<a name="line441">441: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_CG</a>` - Conjugate Gradient</font>
<a name="line442">442: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BCG</a>` - block CG</font>
<a name="line443">443: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GCRODR</a>` - Generalized Conjugate Residual method with inner Orthogonalization and Deflated Restarting</font>
<a name="line444">444: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGCRODR</a>` - block GCRODR</font>
<a name="line445">445: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BFBCG</a>` - breakdown-free BCG</font>
<a name="line446">446: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_PREONLY</a>` - apply the preconditioner only</font>
<a name="line448">448: </a><font color="#B22222"> Level: intermediate</font>
<a name="line450">450: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`, `<a href="../manualpages/KSP/KSPHPDDMSetType.html">KSPHPDDMSetType</a>()`</font>
<a name="line451">451: </a><font color="#B22222">E*/</font>
<a name="line452">452: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line453">453: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GMRES</a> = 0,
<a name="line454">454: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGMRES</a> = 1,
<a name="line455">455: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_CG</a> = 2,
<a name="line456">456: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BCG</a> = 3,
<a name="line457">457: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_GCRODR</a> = 4,
<a name="line458">458: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BGCRODR</a> = 5,
<a name="line459">459: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_BFBCG</a> = 6,
<a name="line460">460: </a> <a href="../manualpages/KSP/KSPHPDDMType.html">KSP_HPDDM_TYPE_PREONLY</a> = 7
<a name="line461">461: </a>} <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a>;
<a name="line462">462: </a>PETSC_EXTERN const char *const KSPHPDDMTypes[];
<a name="line464">464: </a><font color="#B22222">/*E</font>
<a name="line465">465: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSPHPDDMPrecision</a> - Precision of Krylov bases used by `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line467">467: </a><font color="#B22222"> Values:</font>
<a name="line468">468: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_HALF</a>` - default when PETSc is configured `--with-precision=__fp16`</font>
<a name="line469">469: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_SINGLE</a>` - default when PETSc is configured `--with-precision=single`</font>
<a name="line470">470: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_DOUBLE</a>` - default when PETSc is configured `--with-precision=double`</font>
<a name="line471">471: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_QUADRUPLE</a>` - default when PETSc is configured `--with-precision=__float128`</font>
<a name="line473">473: </a><font color="#B22222"> Level: intermediate</font>
<a name="line475">475: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`</font>
<a name="line476">476: </a><font color="#B22222">E*/</font>
<a name="line477">477: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line478">478: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_HALF</a> = 0,
<a name="line479">479: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_SINGLE</a> = 1,
<a name="line480">480: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_DOUBLE</a> = 2,
<a name="line481">481: </a> <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSP_HPDDM_PRECISION_QUADRUPLE</a> = 3
<a name="line482">482: </a>} <a href="../manualpages/KSP/KSPHPDDMPrecision.html">KSPHPDDMPrecision</a>;
<a name="line483">483: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMSetType.html">KSPHPDDMSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a>)</font></strong>;
<a name="line484">484: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPHPDDMGetType.html">KSPHPDDMGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPHPDDMType.html">KSPHPDDMType</a> *)</font></strong>;
<a name="line486">486: </a><font color="#B22222">/*E</font>
<a name="line487">487: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a> - How the classical (unmodified) Gram-Schmidt is performed in the GMRES solvers</font>
<a name="line489">489: </a><font color="#B22222"> Values:</font>
<a name="line490">490: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` - one step of classical Gram-Schmidt</font>
<a name="line491">491: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>` - a second step is performed if the first step does not satisfy some criteria</font>
<a name="line492">492: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>` - always perform two steps</font>
<a name="line494">494: </a><font color="#B22222"> Level: advanced</font>
<a name="line496">496: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line497">497: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line498">498: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line499">499: </a><font color="#B22222">E*/</font>
<a name="line500">500: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line501">501: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>,
<a name="line502">502: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>,
<a name="line503">503: </a> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>
<a name="line504">504: </a>} <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>;
<a name="line505">505: </a>PETSC_EXTERN const char *const KSPGMRESCGSRefinementTypes[];
<a name="line507">507: </a><font color="#B22222">/*MC</font>
<a name="line508">508: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a> - Do the classical (unmodified) Gram-Schmidt process</font>
<a name="line510">510: </a><font color="#B22222"> Level: advanced</font>
<a name="line512">512: </a><font color="#B22222"> Note:</font>
<a name="line513">513: </a><font color="#B22222"> Possibly unstable, but the fastest to compute</font>
<a name="line515">515: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line516">516: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line517">517: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line518">518: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line519">519: </a><font color="#B22222">M*/</font>
<a name="line521">521: </a><font color="#B22222">/*MC</font>
<a name="line522">522: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a> - Do the classical (unmodified) Gram-Schmidt process and one step of</font>
<a name="line523">523: </a><font color="#B22222"> iterative refinement if an estimate of the orthogonality of the resulting vectors indicates</font>
<a name="line524">524: </a><font color="#B22222"> poor orthogonality.</font>
<a name="line526">526: </a><font color="#B22222"> Level: advanced</font>
<a name="line528">528: </a><font color="#B22222"> Note:</font>
<a name="line529">529: </a><font color="#B22222"> This is slower than `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` because it requires an extra norm computation to</font>
<a name="line530">530: </a><font color="#B22222"> estimate the orthogonality but is more stable.</font>
<a name="line532">532: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line533">533: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line534">534: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line535">535: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line536">536: </a><font color="#B22222">M*/</font>
<a name="line538">538: </a><font color="#B22222">/*MC</font>
<a name="line539">539: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a> - Do two steps of the classical (unmodified) Gram-Schmidt process.</font>
<a name="line541">541: </a><font color="#B22222"> Level: advanced</font>
<a name="line543">543: </a><font color="#B22222"> Notes:</font>
<a name="line544">544: </a><font color="#B22222"> This is roughly twice the cost of `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_NEVER.html">KSP_GMRES_CGS_REFINE_NEVER</a>` because it performs the process twice</font>
<a name="line545">545: </a><font color="#B22222"> but it saves the extra norm calculation needed by `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`.</font>
<a name="line547">547: </a><font color="#B22222"> You should only use this if you absolutely know that the iterative refinement is needed.</font>
<a name="line549">549: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`, `<a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>`, `<a href="../manualpages/KSP/KSPGMRESClassicalGramSchmidtOrthogonalization.html">KSPGMRESClassicalGramSchmidtOrthogonalization</a>()`, `<a href="../manualpages/KSP/KSPGMRESSetOrthogonalization.html">KSPGMRESSetOrthogonalization</a>()`,</font>
<a name="line550">550: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGMRESGetOrthogonalization.html">KSPGMRESGetOrthogonalization</a>()`,</font>
<a name="line551">551: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>()`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_IFNEEDED.html">KSP_GMRES_CGS_REFINE_IFNEEDED</a>`, `<a href="../manualpages/KSP/KSP_GMRES_CGS_REFINE_ALWAYS.html">KSP_GMRES_CGS_REFINE_ALWAYS</a>`,</font>
<a name="line552">552: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPGMRESModifiedGramSchmidtOrthogonalization.html">KSPGMRESModifiedGramSchmidtOrthogonalization</a>()`</font>
<a name="line553">553: </a><font color="#B22222">M*/</font>
<a name="line555">555: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESSetCGSRefinementType.html">KSPGMRESSetCGSRefinementType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a>)</font></strong>;
<a name="line556">556: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESGetCGSRefinementType.html">KSPGMRESGetCGSRefinementType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGMRESCGSRefinementType.html">KSPGMRESCGSRefinementType</a> *)</font></strong>;
<a name="line558">558: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> <a href="../manualpages/KSP/KSPFGMRESModifyPCNoChange.html">KSPFGMRESModifyPCNoChange</a>;
<a name="line559">559: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> <a href="../manualpages/KSP/KSPFGMRESModifyPCKSP.html">KSPFGMRESModifyPCKSP</a>;
<a name="line560">560: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPFGMRESSetModifyPC.html">KSPFGMRESSetModifyPC</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPFlexibleModifyPCFn.html">KSPFlexibleModifyPCFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line562">562: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGSetTrustRegionRadius.html">KSPQCGSetTrustRegionRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line563">563: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGGetQuadratic.html">KSPQCGGetQuadratic</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line564">564: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPQCGGetTrialStepNorm.html">KSPQCGGetTrialStepNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line566">566: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetXRes.html">KSPBCGSLSetXRes</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line567">567: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetPol.html">KSPBCGSLSetPol</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line568">568: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetEll.html">KSPBCGSLSetEll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line569">569: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPBCGSLSetUsePseudoinverse.html">KSPBCGSLSetUsePseudoinverse</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line571">571: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetFromOptions.html">KSPSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line572">572: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPResetFromOptions.html">KSPResetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line574">574: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSetFromOptions.html">KSPMonitorSetFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[], const char[], void *)</font></strong>;
<a name="line575">575: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>;
<a name="line576">576: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorResidualView.html">KSPMonitorResidualView</a>;
<a name="line577">577: </a>PETSC_DEPRECATED_FUNCTION(3, 23, 0, <font color="#666666">"KSPMonitorResidualDraw()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorResidualDraw(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line578">578: </a>{
<a name="line579">579: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorResidualView.html">KSPMonitorResidualView</a>(ksp, n, rnorm, vf);
<a name="line580">580: </a>}
<a name="line581">581: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorResidualDrawLG.html">KSPMonitorResidualDrawLG</a>;
<a name="line582">582: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorResidualDrawLGCreate.html">KSPMonitorResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line583">583: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> KSPMonitorResidualShort;
<a name="line584">584: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorResidualRange.html">KSPMonitorResidualRange</a>;
<a name="line585">585: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>;
<a name="line586">586: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualView.html">KSPMonitorTrueResidualView</a>;
<a name="line587">587: </a>PETSC_DEPRECATED_FUNCTION(3, 23, 0, <font color="#666666">"KSPMonitorTrueResidualDraw()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorTrueResidualDraw(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line588">588: </a>{
<a name="line589">589: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorTrueResidualView.html">KSPMonitorTrueResidualView</a>(ksp, n, rnorm, vf);
<a name="line590">590: </a>}
<a name="line591">591: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualDrawLG.html">KSPMonitorTrueResidualDrawLG</a>;
<a name="line592">592: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualDrawLGCreate.html">KSPMonitorTrueResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line593">593: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>;
<a name="line594">594: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorError.html">KSPMonitorError</a>;
<a name="line595">595: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorErrorDraw.html">KSPMonitorErrorDraw</a>;
<a name="line596">596: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorErrorDrawLG.html">KSPMonitorErrorDrawLG</a>;
<a name="line597">597: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorErrorDrawLGCreate.html">KSPMonitorErrorDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line598">598: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorSolution.html">KSPMonitorSolution</a>;
<a name="line599">599: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorSolutionDraw.html">KSPMonitorSolutionDraw</a>;
<a name="line600">600: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorSolutionDrawLG.html">KSPMonitorSolutionDrawLG</a>;
<a name="line601">601: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSolutionDrawLGCreate.html">KSPMonitorSolutionDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line602">602: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPMonitorSingularValue.html">KSPMonitorSingularValue</a>;
<a name="line603">603: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSingularValueCreate.html">KSPMonitorSingularValueCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line604">604: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorDefault(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line605">605: </a>{
<a name="line606">606: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorResidual.html">KSPMonitorResidual</a>(ksp, n, rnorm, vf);
<a name="line607">607: </a>}
<a name="line608">608: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorTrueResidualNorm(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line609">609: </a>{
<a name="line610">610: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorTrueResidual.html">KSPMonitorTrueResidual</a>(ksp, n, rnorm, vf);
<a name="line611">611: </a>}
<a name="line612">612: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorTrueResidualMaxNorm(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> n, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, PetscViewerAndFormat *vf)
<a name="line613">613: </a>{
<a name="line614">614: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPMonitorTrueResidualMax.html">KSPMonitorTrueResidualMax</a>(ksp, n, rnorm, vf);
<a name="line615">615: </a>}
<a name="line617">617: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGMRESMonitorKrylov.html">KSPGMRESMonitorKrylov</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line618">618: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicTolerance.html">KSPMonitorDynamicTolerance</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line619">619: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceDestroy.html">KSPMonitorDynamicToleranceDestroy</a>(void **)</font></strong>;
<a name="line620">620: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceCreate.html">KSPMonitorDynamicToleranceCreate</a>(void *)</font></strong>;
<a name="line621">621: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorDynamicToleranceSetCoefficient.html">KSPMonitorDynamicToleranceSetCoefficient</a>(void *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line622">622: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWs.html">KSPMonitorSAWs</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line623">623: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWsCreate.html">KSPMonitorSAWsCreate</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void **)</font></strong>;
<a name="line624">624: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPMonitorSAWsDestroy.html">KSPMonitorSAWsDestroy</a>(void **)</font></strong>;
<a name="line626">626: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPUnwindPreconditioner.html">KSPUnwindPreconditioner</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line627">627: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPInitialResidual.html">KSPInitialResidual</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line629">629: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetOperators.html">KSPSetOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line630">630: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOperators.html">KSPGetOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line631">631: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOperatorsSet.html">KSPGetOperatorsSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line632">632: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetOptionsPrefix.html">KSPSetOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line633">633: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPAppendOptionsPrefix.html">KSPAppendOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line634">634: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetOptionsPrefix.html">KSPGetOptionsPrefix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char *[])</font></strong>;
<a name="line636">636: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDiagonalScale.html">KSPSetDiagonalScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line637">637: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDiagonalScale.html">KSPGetDiagonalScale</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line638">638: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDiagonalScaleFix.html">KSPSetDiagonalScaleFix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line639">639: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDiagonalScaleFix.html">KSPGetDiagonalScaleFix</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line641">641: </a><font color="#B22222">/*S</font>
<a name="line642">642: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPConvergedReasonViewFn.html">KSPConvergedReasonViewFn</a> - A prototype of a function used with `<a href="../manualpages/KSP/KSPConvergedReasonViewSet.html">KSPConvergedReasonViewSet</a>()`</font>
<a name="line644">644: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line645">645: </a><font color="#B22222">+ ksp - the `<a href="../manualpages/KSP/KSP.html">KSP</a>` object whose `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>` is to be viewed</font>
<a name="line646">646: </a><font color="#B22222">- ctx - context used by the function, set with `<a href="../manualpages/KSP/KSPConvergedReasonViewSet.html">KSPConvergedReasonViewSet</a>()`</font>
<a name="line648">648: </a><font color="#B22222"> Level: beginner</font>
<a name="line650">650: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>()`, `<a href="../manualpages/KSP/KSPConvergedReasonViewSet.html">KSPConvergedReasonViewSet</a>()`, `<a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>()`, `<a href="../manualpages/KSP/KSPView.html">KSPView</a>()`</font>
<a name="line651">651: </a><font color="#B22222">S*/</font>
<a name="line652">652: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewFn.html">KSPConvergedReasonViewFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, void *ctx)</font></strong>;
<a name="line654">654: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPView.html">KSPView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line655">655: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLoad.html">KSPLoad</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line656">656: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPViewFromOptions.html">KSPViewFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, const char[])</font></strong>;
<a name="line657">657: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line658">658: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewSet.html">KSPConvergedReasonViewSet</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergedReasonViewFn.html">KSPConvergedReasonViewFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line659">659: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line660">660: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedReasonViewCancel.html">KSPConvergedReasonViewCancel</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line661">661: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedRateView.html">KSPConvergedRateView</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line663">663: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPReasonView(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> v)
<a name="line664">664: </a>{
<a name="line665">665: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>(ksp, v);
<a name="line666">666: </a>}
<a name="line667">667: </a>PETSC_DEPRECATED_FUNCTION(3, 14, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPReasonViewFromOptions(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp)
<a name="line668">668: </a>{
<a name="line669">669: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPConvergedReasonViewFromOptions.html">KSPConvergedReasonViewFromOptions</a>(ksp);
<a name="line670">670: </a>}
<a name="line672">672: </a><strong><font color="#228B22">#define KSP_FILE_CLASSID 1211223</font></strong>
<a name="line674">674: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRSetExactMatNorm.html">KSPLSQRSetExactMatNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line675">675: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRSetComputeStandardErrorVec.html">KSPLSQRSetComputeStandardErrorVec</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line676">676: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRGetStandardErrorVec.html">KSPLSQRGetStandardErrorVec</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line677">677: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRGetNorms.html">KSPLSQRGetNorms</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line678">678: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidual.html">KSPLSQRMonitorResidual</a>;
<a name="line679">679: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPMonitorRegisterFn.html">KSPMonitorRegisterFn</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidualDrawLG.html">KSPLSQRMonitorResidualDrawLG</a>;
<a name="line680">680: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPLSQRMonitorResidualDrawLGCreate.html">KSPLSQRMonitorResidualDrawLGCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, void *, PetscViewerAndFormat **)</font></strong>;
<a name="line682">682: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCRedundantGetKSP.html">PCRedundantGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line683">683: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCRedistributeGetKSP.html">PCRedistributeGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line684">684: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCTelescopeGetKSP.html">PCTelescopeGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line685">685: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCMPIGetKSP.html">PCMPIGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line687">687: </a><font color="#B22222">/*E</font>
<a name="line688">688: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a> - Norm calculated by the `<a href="../manualpages/KSP/KSP.html">KSP</a>` and passed in the Krylov convergence</font>
<a name="line689">689: </a><font color="#B22222"> test routines.</font>
<a name="line691">691: </a><font color="#B22222"> Values:</font>
<a name="line692">692: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a>` - use the default for the current `<a href="../manualpages/KSP/KSPType.html">KSPType</a>`</font>
<a name="line693">693: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>` - use no norm calculation</font>
<a name="line694">694: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>` - use the preconditioned residual norm</font>
<a name="line695">695: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>` - use the unpreconditioned residual norm</font>
<a name="line696">696: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>` - use the natural norm (the norm induced by the linear operator)</font>
<a name="line698">698: </a><font color="#B22222"> Level: advanced</font>
<a name="line700">700: </a><font color="#B22222"> Note:</font>
<a name="line701">701: </a><font color="#B22222"> Each solver only supports a subset of these and some may support different ones</font>
<a name="line702">702: </a><font color="#B22222"> depending on whether left or right preconditioning is used, see `<a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>()`</font>
<a name="line704">704: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/PC/PCSide.html">PCSide</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`,</font>
<a name="line705">705: </a><font color="#B22222"> `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`, `<a href="../manualpages/KSP/KSPSetPCSide.html">KSPSetPCSide</a>()`, `<a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a>`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`</font>
<a name="line706">706: </a><font color="#B22222">E*/</font>
<a name="line707">707: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line708">708: </a> <a href="../manualpages/KSP/KSPNormType.html">KSP_NORM_DEFAULT</a> = -1,
<a name="line709">709: </a> <a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a> = 0,
<a name="line710">710: </a> <a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a> = 1,
<a name="line711">711: </a> <a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a> = 2,
<a name="line712">712: </a> <a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> = 3
<a name="line713">713: </a>} <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>;
<a name="line714">714: </a><strong><font color="#228B22">#define KSP_NORM_MAX (<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> + 1)</font></strong>
<a name="line715">715: </a>PETSC_EXTERN const char *const *const KSPNormTypes;
<a name="line717">717: </a><font color="#B22222">/*MC</font>
<a name="line718">718: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a> - Do not compute a norm during the Krylov process. This will</font>
<a name="line719">719: </a><font color="#B22222"> possibly save some computation but means the convergence test cannot</font>
<a name="line720">720: </a><font color="#B22222"> be based on a norm of a residual etc.</font>
<a name="line722">722: </a><font color="#B22222"> Level: advanced</font>
<a name="line724">724: </a><font color="#B22222"> Note:</font>
<a name="line725">725: </a><font color="#B22222"> Some Krylov methods need to compute a residual norm (such as `KPSGMRES`) and then this option is ignored</font>
<a name="line727">727: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`</font>
<a name="line728">728: </a><font color="#B22222">M*/</font>
<a name="line730">730: </a><font color="#B22222">/*MC</font>
<a name="line731">731: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a> - Compute the norm of the preconditioned residual B*(b - A*x), if left preconditioning, and pass that to the</font>
<a name="line732">732: </a><font color="#B22222"> convergence test routine.</font>
<a name="line734">734: </a><font color="#B22222"> Level: advanced</font>
<a name="line736">736: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line737">737: </a><font color="#B22222">M*/</font>
<a name="line739">739: </a><font color="#B22222">/*MC</font>
<a name="line740">740: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a> - Compute the norm of the true residual (b - A*x) and pass that to the</font>
<a name="line741">741: </a><font color="#B22222"> convergence test routine.</font>
<a name="line743">743: </a><font color="#B22222"> Level: advanced</font>
<a name="line745">745: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line746">746: </a><font color="#B22222">M*/</font>
<a name="line748">748: </a><font color="#B22222">/*MC</font>
<a name="line749">749: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_NORM_NATURAL.html">KSP_NORM_NATURAL</a> - Compute the 'natural norm' of residual sqrt((b - A*x)*B*(b - A*x)) and pass that to the</font>
<a name="line750">750: </a><font color="#B22222"> convergence test routine. This is only supported by `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPCR.html">KSPCR</a>`, `<a href="../manualpages/KSP/KSPCGNE.html">KSPCGNE</a>`, `<a href="../manualpages/KSP/KSPCGS.html">KSPCGS</a>`, `<a href="../manualpages/KSP/KSPFCG.html">KSPFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEFCG.html">KSPPIPEFCG</a>`, `<a href="../manualpages/KSP/KSPPIPEGCR.html">KSPPIPEGCR</a>`</font>
<a name="line752">752: </a><font color="#B22222"> Level: advanced</font>
<a name="line754">754: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()`, `<a href="../manualpages/KSP/KSP_NORM_NONE.html">KSP_NORM_NONE</a>`, `<a href="../manualpages/KSP/KSP_NORM_PRECONDITIONED.html">KSP_NORM_PRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSP_NORM_UNPRECONDITIONED.html">KSP_NORM_UNPRECONDITIONED</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line755">755: </a><font color="#B22222">M*/</font>
<a name="line757">757: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>)</font></strong>;
<a name="line758">758: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetNormType.html">KSPGetNormType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a> *)</font></strong>;
<a name="line759">759: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetSupportedNorm.html">KSPSetSupportedNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>, <a href="../manualpages/PC/PCSide.html">PCSide</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line760">760: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetCheckNormIteration.html">KSPSetCheckNormIteration</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line761">761: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetLagNorm.html">KSPSetLagNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line763">763: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_NEG_CURVE_DEPRECATED</a> KSP_CONVERGED_CG_NEG_CURVE PETSC_DEPRECATED_ENUM(3, 19, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>"</font><font color="#228B22">, )</font></strong>
<a name="line764">764: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_CONSTRAINED_DEPRECATED</a> KSP_CONVERGED_CG_CONSTRAINED PETSC_DEPRECATED_ENUM(3, 19, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>"</font><font color="#228B22">, )</font></strong>
<a name="line765">765: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL_DEPRECATED</a> KSP_CONVERGED_RTOL_NORMAL PETSC_DEPRECATED_ENUM(3, 24, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL_EQUATIONS</a>"</font><font color="#228B22">, )</font></strong>
<a name="line766">766: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL_DEPRECATED</a> KSP_CONVERGED_ATOL_NORMAL PETSC_DEPRECATED_ENUM(3, 24, 0, </font><font color="#666666">"<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL_EQUATIONS</a>"</font><font color="#228B22">, )</font></strong>
<a name="line767">767: </a><font color="#B22222">/*E</font>
<a name="line768">768: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> - reason a Krylov method was determined to have converged or diverged</font>
<a name="line770">770: </a><font color="#B22222"> Values:</font>
<a name="line771">771: </a><font color="#B22222">+ `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL_EQUATIONS</a>` - requested decrease in the residual of the normal equations, for `<a href="../manualpages/KSP/KSPLSQR.html">KSPLSQR</a>`</font>
<a name="line772">772: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL_EQUATIONS</a>` - requested absolute value in the residual of the normal equations, for `<a href="../manualpages/KSP/KSPLSQR.html">KSPLSQR</a>`</font>
<a name="line773">773: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>` - requested decrease in the residual</font>
<a name="line774">774: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>` - requested absolute value in the residual</font>
<a name="line775">775: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a>` - requested number of iterations</font>
<a name="line776">776: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>` - see note below</font>
<a name="line777">777: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>` - see note below</font>
<a name="line778">778: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_HAPPY_BREAKDOWN</a>` - happy breakdown (meaning early convergence of the `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` occurred).</font>
<a name="line779">779: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_USER</a>` - the user has indicated convergence for an arbitrary reason</font>
<a name="line780">780: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NULL</a>` - breakdown when solving the Hessenberg system within `<a href="../manualpages/KSP/KSPGMRES.html">KSPGMRES</a>`</font>
<a name="line781">781: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a>` - requested number of iterations</font>
<a name="line782">782: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>` - large increase in the residual norm indicating the solution is diverging</font>
<a name="line783">783: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a>` - breakdown in the Krylov method</font>
<a name="line784">784: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a>` - breakdown in the `<a href="../manualpages/KSP/KSPBCGS.html">KSPBCGS</a>` Krylov method</font>
<a name="line785">785: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a>` - the operator or preonditioner was not symmetric for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires symmetry</font>
<a name="line786">786: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a>` - the preconditioner was indefinite for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires it be definite, such as `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`</font>
<a name="line787">787: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NANORINF</a>` - a not a number of infinity was detected in a vector during the computation</font>
<a name="line788">788: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_INDEFINITE_MAT</a>` - the operator was indefinite for a `<a href="../manualpages/KSP/KSPType.html">KSPType</a>` that requires it be definite, such as `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`</font>
<a name="line789">789: </a><font color="#B22222">. `<a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a>` - the action of the preconditioner failed for some reason</font>
<a name="line790">790: </a><font color="#B22222">- `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_USER</a>` - the user has indicated divergence for an arbitrary reason</font>
<a name="line792">792: </a><font color="#B22222"> Level: beginner</font>
<a name="line794">794: </a><font color="#B22222"> Note:</font>
<a name="line795">795: </a><font color="#B22222"> The values `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a>`, and `<a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a>` are returned only by `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a>` and by</font>
<a name="line796">796: </a><font color="#B22222"> the special `<a href="../manualpages/KSP/KSPNASH.html">KSPNASH</a>`, `<a href="../manualpages/KSP/KSPSTCG.html">KSPSTCG</a>`, and `<a href="../manualpages/KSP/KSPGLTR.html">KSPGLTR</a>` solvers which are used by the `<a href="../manualpages/SNES/SNESNEWTONTR.html">SNESNEWTONTR</a>` (trust region) solver.</font>
<a name="line798">798: </a><font color="#B22222"> Developer Note:</font>
<a name="line799">799: </a><font color="#B22222"> The string versions of these are `KSPConvergedReasons`; if you change</font>
<a name="line800">800: </a><font color="#B22222"> any of the values here also change them that array of names.</font>
<a name="line802">802: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`, `<a href="../manualpages/KSP/KSPConvergedReasonView.html">KSPConvergedReasonView</a>()`</font>
<a name="line803">803: </a><font color="#B22222">E*/</font>
<a name="line804">804: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> { <font color="#B22222">/* converged */</font>
<a name="line805">805: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL_DEPRECATED</a> = 1,
<a name="line806">806: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_RTOL_NORMAL_EQUATIONS</a> = 1,
<a name="line807">807: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL_DEPRECATED</a> = 9,
<a name="line808">808: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_ATOL_NORMAL_EQUATIONS</a> = 9,
<a name="line809">809: </a> <a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a> = 2,
<a name="line810">810: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a> = 3,
<a name="line811">811: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a> = 4,
<a name="line812">812: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_NEG_CURVE</a> = 5,
<a name="line813">813: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_NEG_CURVE_DEPRECATED</a> = 5,
<a name="line814">814: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_CG_CONSTRAINED_DEPRECATED</a> = 6,
<a name="line815">815: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_STEP_LENGTH</a> = 6,
<a name="line816">816: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_HAPPY_BREAKDOWN</a> = 7,
<a name="line817">817: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_CONVERGED_USER</a> = 8,
<a name="line818">818: </a> <font color="#B22222">/* diverged */</font>
<a name="line819">819: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NULL</a> = -2,
<a name="line820">820: </a> <a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a> = -3,
<a name="line821">821: </a> <a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a> = -4,
<a name="line822">822: </a> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a> = -5,
<a name="line823">823: </a> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a> = -6,
<a name="line824">824: </a> <a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a> = -7,
<a name="line825">825: </a> <a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a> = -8,
<a name="line826">826: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_NANORINF</a> = -9,
<a name="line827">827: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_INDEFINITE_MAT</a> = -10,
<a name="line828">828: </a> <a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a> = -11,
<a name="line829">829: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED</a> = -11,
<a name="line830">830: </a> <a href="../manualpages/KSP/KSPConvergedReason.html">KSP_DIVERGED_USER</a> = -12,
<a name="line832">832: </a> <a href="../manualpages/KSP/KSP_CONVERGED_ITERATING.html">KSP_CONVERGED_ITERATING</a> = 0
<a name="line833">833: </a>} <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>;
<a name="line834">834: </a>PETSC_EXTERN const char *const *KSPConvergedReasons;
<a name="line836">836: </a><font color="#B22222">/*MC</font>
<a name="line837">837: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a> - $||r|| \le rtol*||b||$ or $rtol*||b - A*x_0||$ if `<a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>()` was called</font>
<a name="line839">839: </a><font color="#B22222"> Level: beginner</font>
<a name="line841">841: </a><font color="#B22222"> Notes:</font>
<a name="line842">842: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line843">843: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line844">844: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line846">846: </a><font color="#B22222"> See also `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>` which may apply before this tolerance.</font>
<a name="line848">848: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>`, `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line849">849: </a><font color="#B22222">M*/</font>
<a name="line851">851: </a><font color="#B22222">/*MC</font>
<a name="line852">852: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a> - $||r|| \le atol$</font>
<a name="line854">854: </a><font color="#B22222"> Level: beginner</font>
<a name="line856">856: </a><font color="#B22222"> Notes:</font>
<a name="line857">857: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line858">858: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line859">859: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line861">861: </a><font color="#B22222"> See also `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>` which may apply before this tolerance.</font>
<a name="line863">863: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>`, `<a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line864">864: </a><font color="#B22222">M*/</font>
<a name="line866">866: </a><font color="#B22222">/*MC</font>
<a name="line867">867: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_DTOL.html">KSP_DIVERGED_DTOL</a> - $||r|| \ge dtol*||b||$</font>
<a name="line869">869: </a><font color="#B22222"> Level: beginner</font>
<a name="line871">871: </a><font color="#B22222"> Note:</font>
<a name="line872">872: </a><font color="#B22222"> See `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>` and `<a href="../manualpages/KSP/KSPSetNormType.html">KSPSetNormType</a>()` for possible norms that may be used. By default</font>
<a name="line873">873: </a><font color="#B22222"> for left preconditioning it is the 2-norm of the preconditioned residual, and the</font>
<a name="line874">874: </a><font color="#B22222"> 2-norm of the residual for right preconditioning</font>
<a name="line876">876: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPNormType.html">KSPNormType</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_ATOL.html">KSP_CONVERGED_ATOL</a>`, `<a href="../manualpages/KSP/KSP_CONVERGED_RTOL.html">KSP_CONVERGED_RTOL</a>`, `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line877">877: </a><font color="#B22222">M*/</font>
<a name="line879">879: </a><font color="#B22222">/*MC</font>
<a name="line880">880: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_ITS.html">KSP_DIVERGED_ITS</a> - Ran out of iterations before any convergence criteria was</font>
<a name="line881">881: </a><font color="#B22222"> reached</font>
<a name="line883">883: </a><font color="#B22222"> Level: beginner</font>
<a name="line885">885: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line886">886: </a><font color="#B22222">M*/</font>
<a name="line888">888: </a><font color="#B22222">/*MC</font>
<a name="line889">889: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ITS.html">KSP_CONVERGED_ITS</a> - Used by the `<a href="../manualpages/KSP/KSPPREONLY.html">KSPPREONLY</a>` solver after the single iteration of</font>
<a name="line890">890: </a><font color="#B22222"> the preconditioner is applied. Also used when the `<a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>()` convergence</font>
<a name="line891">891: </a><font color="#B22222"> test routine is set in `<a href="../manualpages/KSP/KSP.html">KSP</a>`.</font>
<a name="line893">893: </a><font color="#B22222"> Level: beginner</font>
<a name="line895">895: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line896">896: </a><font color="#B22222">M*/</font>
<a name="line898">898: </a><font color="#B22222">/*MC</font>
<a name="line899">899: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN.html">KSP_DIVERGED_BREAKDOWN</a> - A breakdown in the Krylov method was detected so the</font>
<a name="line900">900: </a><font color="#B22222"> method could not continue to enlarge the Krylov space. Could be due to a singular matrix or</font>
<a name="line901">901: </a><font color="#B22222"> preconditioner. In `<a href="../manualpages/KSP/KSPHPDDM.html">KSPHPDDM</a>`, this is also returned when some search directions within a block</font>
<a name="line902">902: </a><font color="#B22222"> are collinear.</font>
<a name="line904">904: </a><font color="#B22222"> Level: beginner</font>
<a name="line906">906: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line907">907: </a><font color="#B22222">M*/</font>
<a name="line909">909: </a><font color="#B22222">/*MC</font>
<a name="line910">910: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_BREAKDOWN_BICG.html">KSP_DIVERGED_BREAKDOWN_BICG</a> - A breakdown in the `<a href="../manualpages/KSP/KSPBICG.html">KSPBICG</a>` method was detected so the</font>
<a name="line911">911: </a><font color="#B22222"> method could not continue to enlarge the Krylov space.</font>
<a name="line913">913: </a><font color="#B22222"> Level: beginner</font>
<a name="line915">915: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line916">916: </a><font color="#B22222">M*/</font>
<a name="line918">918: </a><font color="#B22222">/*MC</font>
<a name="line919">919: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_NONSYMMETRIC.html">KSP_DIVERGED_NONSYMMETRIC</a> - It appears the operator or preconditioner is not</font>
<a name="line920">920: </a><font color="#B22222"> symmetric and this Krylov method (`<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSPMINRES.html">KSPMINRES</a>`, `<a href="../manualpages/KSP/KSPCR.html">KSPCR</a>`) requires symmetry</font>
<a name="line922">922: </a><font color="#B22222"> Level: beginner</font>
<a name="line924">924: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line925">925: </a><font color="#B22222">M*/</font>
<a name="line927">927: </a><font color="#B22222">/*MC</font>
<a name="line928">928: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_INDEFINITE_PC.html">KSP_DIVERGED_INDEFINITE_PC</a> - It appears the preconditioner is indefinite (has both</font>
<a name="line929">929: </a><font color="#B22222"> positive and negative eigenvalues) and this Krylov method (`<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`) requires it to</font>
<a name="line930">930: </a><font color="#B22222"> be symmetric positive definite (SPD).</font>
<a name="line932">932: </a><font color="#B22222"> Level: beginner</font>
<a name="line934">934: </a><font color="#B22222"> Note:</font>
<a name="line935">935: </a><font color="#B22222"> This can happen with the `<a href="../manualpages/PC/PCICC.html">PCICC</a>` preconditioner, use the options database option `-pc_factor_shift_positive_definite` to force</font>
<a name="line936">936: </a><font color="#B22222"> the `<a href="../manualpages/PC/PCICC.html">PCICC</a>` preconditioner to generate a positive definite preconditioner</font>
<a name="line938">938: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line939">939: </a><font color="#B22222">M*/</font>
<a name="line941">941: </a><font color="#B22222">/*MC</font>
<a name="line942">942: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_DIVERGED_PC_FAILED.html">KSP_DIVERGED_PC_FAILED</a> - It was not possible to build or use the requested preconditioner. This is usually due to a</font>
<a name="line943">943: </a><font color="#B22222"> zero pivot in a factorization. It can also result from a failure in a subpreconditioner inside a nested preconditioner</font>
<a name="line944">944: </a><font color="#B22222"> such as `<a href="../manualpages/PC/PCFIELDSPLIT.html">PCFIELDSPLIT</a>`.</font>
<a name="line946">946: </a><font color="#B22222"> Level: beginner</font>
<a name="line948">948: </a><font color="#B22222"> Note:</font>
<a name="line949">949: </a><font color="#B22222"> Run with `-ksp_error_if_not_converged` to stop the program when the error is detected and print an error message with details.</font>
<a name="line951">951: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line952">952: </a><font color="#B22222">M*/</font>
<a name="line954">954: </a><font color="#B22222">/*MC</font>
<a name="line955">955: </a><font color="#B22222"> <a href="../manualpages/KSP/KSP_CONVERGED_ITERATING.html">KSP_CONVERGED_ITERATING</a> - This flag is returned if `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()` is called</font>
<a name="line956">956: </a><font color="#B22222"> while `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()` is still running.</font>
<a name="line958">958: </a><font color="#B22222"> Level: beginner</font>
<a name="line960">960: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPSolve.html">KSPSolve</a>()`, `<a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>()`, `<a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a>`, `<a href="../manualpages/KSP/KSPSetTolerances.html">KSPSetTolerances</a>()`</font>
<a name="line961">961: </a><font color="#B22222">M*/</font>
<a name="line963">963: </a><font color="#B22222">/*S</font>
<a name="line964">964: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> - A prototype of a function used with `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line966">966: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line967">967: </a><font color="#B22222">+ ksp - iterative solver obtained from `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`</font>
<a name="line968">968: </a><font color="#B22222">. it - iteration number</font>
<a name="line969">969: </a><font color="#B22222">. rnorm - (estimated) 2-norm of (preconditioned) residual</font>
<a name="line970">970: </a><font color="#B22222">. reason - the reason why it has converged or diverged</font>
<a name="line971">971: </a><font color="#B22222">- ctx - optional convergence context, as set by `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`</font>
<a name="line973">973: </a><font color="#B22222"> Level: beginner</font>
<a name="line975">975: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>()`, `<a href="../manualpages/KSP/KSPGetConvergenceTest.html">KSPGetConvergenceTest</a>()`</font>
<a name="line976">976: </a><font color="#B22222">S*/</font>
<a name="line977">977: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> it, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> rnorm, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *reason, void *ctx)</font></strong>;
<a name="line979">979: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetConvergenceTest.html">KSPSetConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> *, void *, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *)</font></strong>;
<a name="line980">980: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergenceTest.html">KSPGetConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> **, void **, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> **)</font></strong>;
<a name="line981">981: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetAndClearConvergenceTest.html">KSPGetAndClearConvergenceTest</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> **, void **, <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> **)</font></strong>;
<a name="line982">982: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergenceContext.html">KSPGetConvergenceContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line983">983: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> <a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>;
<a name="line984">984: </a>PETSC_EXTERN <a href="../manualpages/KSP/KSPConvergenceTestFn.html">KSPConvergenceTestFn</a> <a href="../manualpages/KSP/KSPLSQRConvergedDefault.html">KSPLSQRConvergedDefault</a>;
<a name="line985">985: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> <a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>;
<a name="line986">986: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>(void **)</font></strong>;
<a name="line987">987: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line988">988: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line989">989: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedDefaultSetConvergedMaxits.html">KSPConvergedDefaultSetConvergedMaxits</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line990">990: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *, void *)</font></strong>;
<a name="line991">991: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedReason.html">KSPGetConvergedReason</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPConvergedReason.html">KSPConvergedReason</a> *)</font></strong>;
<a name="line992">992: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedReasonString.html">KSPGetConvergedReasonString</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char *[])</font></strong>;
<a name="line993">993: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeConvergenceRate.html">KSPComputeConvergenceRate</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line994">994: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetConvergedNegativeCurvature.html">KSPSetConvergedNegativeCurvature</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line995">995: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetConvergedNegativeCurvature.html">KSPGetConvergedNegativeCurvature</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line997">997: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>()"</font>, ) static inline void KSPDefaultConverged(void)
<a name="line998">998: </a>{ <font color="#B22222">/* never called */</font>
<a name="line999">999: </a>}
<a name="line1000">1000: </a><strong><font color="#228B22">#define KSPDefaultConverged (KSPDefaultConverged, <a href="../manualpages/KSP/KSPConvergedDefault.html">KSPConvergedDefault</a>)</font></strong>
<a name="line1001">1001: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>()"</font>, ) static inline void KSPDefaultConvergedDestroy(void)
<a name="line1002">1002: </a>{ <font color="#B22222">/* never called */</font>
<a name="line1003">1003: </a>}
<a name="line1004">1004: </a><strong><font color="#228B22">#define KSPDefaultConvergedDestroy (KSPDefaultConvergedDestroy, <a href="../manualpages/KSP/KSPConvergedDefaultDestroy.html">KSPConvergedDefaultDestroy</a>)</font></strong>
<a name="line1005">1005: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>()"</font>, ) static inline void KSPDefaultConvergedCreate(void)
<a name="line1006">1006: </a>{ <font color="#B22222">/* never called */</font>
<a name="line1007">1007: </a>}
<a name="line1008">1008: </a><strong><font color="#228B22">#define KSPDefaultConvergedCreate (KSPDefaultConvergedCreate, <a href="../manualpages/KSP/KSPConvergedDefaultCreate.html">KSPConvergedDefaultCreate</a>)</font></strong>
<a name="line1009">1009: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>()"</font>, ) static inline void KSPDefaultConvergedSetUIRNorm(void)
<a name="line1010">1010: </a>{ <font color="#B22222">/* never called */</font>
<a name="line1011">1011: </a>}
<a name="line1012">1012: </a><strong><font color="#228B22">#define KSPDefaultConvergedSetUIRNorm (KSPDefaultConvergedSetUIRNorm, <a href="../manualpages/KSP/KSPConvergedDefaultSetUIRNorm.html">KSPConvergedDefaultSetUIRNorm</a>)</font></strong>
<a name="line1013">1013: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>()"</font>, ) static inline void KSPDefaultConvergedSetUMIRNorm(void)
<a name="line1014">1014: </a>{ <font color="#B22222">/* never called */</font>
<a name="line1015">1015: </a>}
<a name="line1016">1016: </a><strong><font color="#228B22">#define KSPDefaultConvergedSetUMIRNorm (KSPDefaultConvergedSetUMIRNorm, <a href="../manualpages/KSP/KSPConvergedDefaultSetUMIRNorm.html">KSPConvergedDefaultSetUMIRNorm</a>)</font></strong>
<a name="line1017">1017: </a>PETSC_DEPRECATED_FUNCTION(3, 5, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>()"</font>, ) static inline void KSPSkipConverged(void)
<a name="line1018">1018: </a>{ <font color="#B22222">/* never called */</font>
<a name="line1019">1019: </a>}
<a name="line1020">1020: </a><strong><font color="#228B22">#define KSPSkipConverged (KSPSkipConverged, <a href="../manualpages/KSP/KSPConvergedSkip.html">KSPConvergedSkip</a>)</font></strong>
<a name="line1022">1022: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/MatType.html">MatType</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1023">1023: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPComputeExplicitOperator(<a href="../manualpages/KSP/KSP.html">KSP</a> A, <a href="../manualpages/Mat/Mat.html">Mat</a> *B)
<a name="line1024">1024: </a>{
<a name="line1025">1025: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPComputeOperator.html">KSPComputeOperator</a>(A, <a href="../manualpages/Sys/PETSC_NULLPTR.html">PETSC_NULLPTR</a>, B);
<a name="line1026">1026: </a>}
<a name="line1028">1028: </a><font color="#B22222">/*E</font>
<a name="line1029">1029: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a> - Determines what type of `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>` to use</font>
<a name="line1031">1031: </a><font color="#B22222"> Values:</font>
<a name="line1032">1032: </a><font color="#B22222"> + `<a href="../manualpages/KSP/KSPCGType.html">KSP_CG_SYMMETRIC</a>` - the matrix is complex symmetric</font>
<a name="line1033">1033: </a><font color="#B22222"> - `<a href="../manualpages/KSP/KSPCGType.html">KSP_CG_HERMITIAN</a>` - the matrix is complex Hermitian</font>
<a name="line1035">1035: </a><font color="#B22222"> Level: beginner</font>
<a name="line1037">1037: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCG.html">KSPCG</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPCGSetType.html">KSPCGSetType</a>()`</font>
<a name="line1038">1038: </a><font color="#B22222">E*/</font>
<a name="line1039">1039: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1040">1040: </a> <a href="../manualpages/KSP/KSPCGType.html">KSP_CG_SYMMETRIC</a> = 0,
<a name="line1041">1041: </a> <a href="../manualpages/KSP/KSPCGType.html">KSP_CG_HERMITIAN</a> = 1
<a name="line1042">1042: </a>} <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a>;
<a name="line1043">1043: </a>PETSC_EXTERN const char *const KSPCGTypes[];
<a name="line1045">1045: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetType.html">KSPCGSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPCGType.html">KSPCGType</a>)</font></strong>;
<a name="line1046">1046: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGUseSingleReduction.html">KSPCGUseSingleReduction</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1048">1048: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetRadius.html">KSPCGSetRadius</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1049">1049: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGSetObjectiveTarget.html">KSPCGSetObjectiveTarget</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1050">1050: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGGetNormD.html">KSPCGGetNormD</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1051">1051: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPCGGetObjFcn.html">KSPCGGetObjFcn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1053">1053: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1054">1054: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1055">1055: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPCGGLTRGetMinEig(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *x)
<a name="line1056">1056: </a>{
<a name="line1057">1057: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGLTRGetMinEig.html">KSPGLTRGetMinEig</a>(ksp, x);
<a name="line1058">1058: </a>}
<a name="line1059">1059: </a>PETSC_DEPRECATED_FUNCTION(3, 12, 0, <font color="#666666">"<a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPCGGLTRGetLambda(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *x)
<a name="line1060">1060: </a>{
<a name="line1061">1061: </a> <font color="#4169E1">return</font> <a href="../manualpages/KSP/KSPGLTRGetLambda.html">KSPGLTRGetLambda</a>(ksp, x);
<a name="line1062">1062: </a>}
<a name="line1064">1064: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPythonSetType.html">KSPPythonSetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char[])</font></strong>;
<a name="line1065">1065: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPPythonGetType.html">KSPPythonGetType</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, const char *[])</font></strong>;
<a name="line1067">1067: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCPreSolve.html">PCPreSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1068">1068: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCPostSolve.html">PCPostSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1070">1070: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> KSPMonitorLGRange(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, void *)</font></strong>;
<a name="line1072">1072: </a><font color="#B22222">/*S</font>
<a name="line1073">1073: </a><font color="#B22222"> <a href="../manualpages/KSP/PCShellPSolveFn.html">PCShellPSolveFn</a> - A function prototype for functions provided to `<a href="../manualpages/PC/PCShellSetPreSolve.html">PCShellSetPreSolve</a>()` and `<a href="../manualpages/PC/PCShellSetPostSolve.html">PCShellSetPostSolve</a>()`</font>
<a name="line1075">1075: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1076">1076: </a><font color="#B22222">+ pc - the preconditioner `<a href="../manualpages/PC/PC.html">PC</a>` context</font>
<a name="line1077">1077: </a><font color="#B22222">. ksp - the `<a href="../manualpages/KSP/KSP.html">KSP</a>` context</font>
<a name="line1078">1078: </a><font color="#B22222">. xin - input vector</font>
<a name="line1079">1079: </a><font color="#B22222">- xout - output vector</font>
<a name="line1081">1081: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1083">1083: </a><font color="#B22222">.seealso: [](ch_snes), `<a href="../manualpages/KSP/KSPPSolveFn.html">KSPPSolveFn</a>`, `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/PC/PCShellSetPreSolve.html">PCShellSetPreSolve</a>()`, `<a href="../manualpages/PC/PCShellSetPostSolve.html">PCShellSetPostSolve</a>()`</font>
<a name="line1084">1084: </a><font color="#B22222">S*/</font>
<a name="line1085">1085: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/PCShellPSolveFn.html">PCShellPSolveFn</a>(<a href="../manualpages/PC/PC.html">PC</a> pc, <a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> xim, <a href="../manualpages/Vec/Vec.html">Vec</a> xout)</font></strong>;
<a name="line1087">1087: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCShellSetPreSolve.html">PCShellSetPreSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/PCShellPSolveFn.html">PCShellPSolveFn</a> *)</font></strong>;
<a name="line1088">1088: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCShellSetPostSolve.html">PCShellSetPostSolve</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/PCShellPSolveFn.html">PCShellPSolveFn</a> *)</font></strong>;
<a name="line1090">1090: </a><font color="#B22222">/*S</font>
<a name="line1091">1091: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> - Abstract PETSc object that manages all initial guess generation methods for Krylov methods.</font>
<a name="line1093">1093: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1095">1095: </a><font color="#B22222"> Note:</font>
<a name="line1096">1096: </a><font color="#B22222"> These methods generate initial guesses based on a series of previous, related, linear solves. For example,</font>
<a name="line1097">1097: </a><font color="#B22222"> in implicit time-stepping with `<a href="../manualpages/TS/TS.html">TS</a>`.</font>
<a name="line1099">1099: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSPCreate.html">KSPCreate</a>()`, `<a href="../manualpages/KSP/KSPGuessSetType.html">KSPGuessSetType</a>()`, `<a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>`</font>
<a name="line1100">1100: </a><font color="#B22222">S*/</font>
<a name="line1101">1101: </a><font color="#4169E1">typedef struct _p_KSPGuess *<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>;</font>
<a name="line1103">1103: </a><font color="#B22222">/*J</font>
<a name="line1104">1104: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a> - String with the name of a PETSc initial guess approach for Krylov methods.</font>
<a name="line1106">1106: </a><font color="#B22222"> Values:</font>
<a name="line1107">1107: </a><font color="#B22222"> + `<a href="../manualpages/KSP/KSPGUESSFISCHER.html">KSPGUESSFISCHER</a>` - methodology developed by Paul Fischer</font>
<a name="line1108">1108: </a><font color="#B22222"> - `<a href="../manualpages/KSP/KSPGUESSPOD.html">KSPGUESSPOD</a>` - methodology based on proper orthogonal decomposition (POD)</font>
<a name="line1110">1110: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1112">1112: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>`</font>
<a name="line1113">1113: </a><font color="#B22222">J*/</font>
<a name="line1114">1114: </a><font color="#4169E1">typedef const char *<a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>;</font>
<a name="line1115">1115: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGUESSFISCHER.html">KSPGUESSFISCHER</a> </font><font color="#666666">"fischer"</font><font color="#228B22"></font></strong>
<a name="line1116">1116: </a><strong><font color="#228B22">#define <a href="../manualpages/KSP/KSPGUESSPOD.html">KSPGUESSPOD</a> </font><font color="#666666">"pod"</font><font color="#228B22"></font></strong>
<a name="line1118">1118: </a><strong><font color="#4169E1"><a name="KSPGuessRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessRegister.html">KSPGuessRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>);
<a name="line1119">1119: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetGuess.html">KSPSetGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line1120">1120: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetGuess.html">KSPGetGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line1121">1121: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessView.html">KSPGuessView</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line1122">1122: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessDestroy.html">KSPGuessDestroy</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line1123">1123: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessCreate.html">KSPGuessCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a> *)</font></strong>;
<a name="line1124">1124: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetType.html">KSPGuessSetType</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a>)</font></strong>;
<a name="line1125">1125: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessGetType.html">KSPGuessGetType</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/KSP/KSPGuessType.html">KSPGuessType</a> *)</font></strong>;
<a name="line1126">1126: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetTolerance.html">KSPGuessSetTolerance</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1127">1127: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetUp.html">KSPGuessSetUp</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line1128">1128: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessUpdate.html">KSPGuessUpdate</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1129">1129: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessFormGuess.html">KSPGuessFormGuess</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1130">1130: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessSetFromOptions.html">KSPGuessSetFromOptions</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>)</font></strong>;
<a name="line1131">1131: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGuessFischerSetModel.html">KSPGuessFischerSetModel</a>(<a href="../manualpages/KSP/KSPGuess.html">KSPGuess</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line1132">1132: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetUseFischerGuess.html">KSPSetUseFischerGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line1133">1133: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetInitialGuessKnoll.html">KSPSetInitialGuessKnoll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1134">1134: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetInitialGuessKnoll.html">KSPGetInitialGuessKnoll</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line1136">1136: </a><font color="#B22222">/*E</font>
<a name="line1137">1137: </a><font color="#B22222"> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a> - Determines how to approximate the inverse of the (0,0) block in Schur complement matrix assembly routines</font>
<a name="line1139">1139: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1141">1141: </a><font color="#B22222">.seealso: `<a href="../manualpages/KSP/MatSchurComplementGetAinvType.html">MatSchurComplementGetAinvType</a>()`, `<a href="../manualpages/KSP/MatSchurComplementSetAinvType.html">MatSchurComplementSetAinvType</a>()`, `<a href="../manualpages/KSP/MatSchurComplementGetPmat.html">MatSchurComplementGetPmat</a>()`, `<a href="../manualpages/KSP/MatGetSchurComplement.html">MatGetSchurComplement</a>()`,</font>
<a name="line1142">1142: </a><font color="#B22222"> `<a href="../manualpages/KSP/MatCreateSchurComplementPmat.html">MatCreateSchurComplementPmat</a>()`, `<a href="../manualpages/KSP/MatCreateSchurComplement.html">MatCreateSchurComplement</a>()`</font>
<a name="line1143">1143: </a><font color="#B22222">E*/</font>
<a name="line1144">1144: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1145">1145: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_DIAG</a>,
<a name="line1146">1146: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_LUMP</a>,
<a name="line1147">1147: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_BLOCK_DIAG</a>,
<a name="line1148">1148: </a> <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MAT_SCHUR_COMPLEMENT_AINV_FULL</a>
<a name="line1149">1149: </a>} <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>;
<a name="line1150">1150: </a>PETSC_EXTERN const char *const MatSchurComplementAinvTypes[];
<a name="line1152">1152: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateSchurComplement.html">MatCreateSchurComplement</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1153">1153: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetKSP.html">MatSchurComplementGetKSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line1154">1154: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetKSP.html">MatSchurComplementSetKSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1155">1155: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetSubMatrices.html">MatSchurComplementSetSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1156">1156: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementUpdateSubMatrices.html">MatSchurComplementUpdateSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1157">1157: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetSubMatrices.html">MatSchurComplementGetSubMatrices</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1158">1158: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementSetAinvType.html">MatSchurComplementSetAinvType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>)</font></strong>;
<a name="line1159">1159: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetAinvType.html">MatSchurComplementGetAinvType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a> *)</font></strong>;
<a name="line1160">1160: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementGetPmat.html">MatSchurComplementGetPmat</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1161">1161: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatSchurComplementComputeExplicitOperator.html">MatSchurComplementComputeExplicitOperator</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1162">1162: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatGetSchurComplement.html">MatGetSchurComplement</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/IS/IS.html">IS</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1163">1163: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateSchurComplementPmat.html">MatCreateSchurComplementPmat</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatSchurComplementAinvType.html">MatSchurComplementAinvType</a>, <a href="../manualpages/Mat/MatReuse.html">MatReuse</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1165">1165: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDFP.html">MatCreateLMVMDFP</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1166">1166: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBFGS.html">MatCreateLMVMBFGS</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1167">1167: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDBFGS.html">MatCreateLMVMDBFGS</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1168">1168: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDDFP.html">MatCreateLMVMDDFP</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1169">1169: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDQN.html">MatCreateLMVMDQN</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1170">1170: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSR1.html">MatCreateLMVMSR1</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1171">1171: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBroyden.html">MatCreateLMVMBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1172">1172: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMBadBroyden.html">MatCreateLMVMBadBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1173">1173: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSymBroyden.html">MatCreateLMVMSymBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1174">1174: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMSymBadBroyden.html">MatCreateLMVMSymBadBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1175">1175: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatCreateLMVMDiagBroyden.html">MatCreateLMVMDiagBroyden</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1177">1177: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMUpdate.html">MatLMVMUpdate</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1178">1178: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMIsAllocated.html">MatLMVMIsAllocated</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line1179">1179: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMAllocate.html">MatLMVMAllocate</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1180">1180: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMReset.html">MatLMVMReset</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1181">1181: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMResetShift.html">MatLMVMResetShift</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1182">1182: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMClearJ0.html">MatLMVMClearJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1183">1183: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0.html">MatLMVMSetJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>)</font></strong>;
<a name="line1184">1184: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0Scale.html">MatLMVMSetJ0Scale</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1185">1185: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0Diag.html">MatLMVMSetJ0Diag</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1186">1186: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0PC.html">MatLMVMSetJ0PC</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/PC/PC.html">PC</a>)</font></strong>;
<a name="line1187">1187: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetJ0KSP.html">MatLMVMSetJ0KSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1188">1188: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMApplyJ0Fwd.html">MatLMVMApplyJ0Fwd</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1189">1189: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMApplyJ0Inv.html">MatLMVMApplyJ0Inv</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1190">1190: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetLastUpdate.html">MatLMVMGetLastUpdate</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Vec/Vec.html">Vec</a> *, <a href="../manualpages/Vec/Vec.html">Vec</a> *)</font></strong>;
<a name="line1191">1191: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0.html">MatLMVMGetJ0</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *)</font></strong>;
<a name="line1192">1192: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0PC.html">MatLMVMGetJ0PC</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/PC/PC.html">PC</a> *)</font></strong>;
<a name="line1193">1193: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetJ0KSP.html">MatLMVMGetJ0KSP</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line1194">1194: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetHistorySize.html">MatLMVMSetHistorySize</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line1195">1195: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> MatLMVMGetHistorySize(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1196">1196: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetUpdateCount.html">MatLMVMGetUpdateCount</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1197">1197: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetRejectCount.html">MatLMVMGetRejectCount</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line1198">1198: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenSetDelta.html">MatLMVMSymBroydenSetDelta</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a>)</font></strong>;
<a name="line1200">1200: </a><font color="#B22222">/*E</font>
<a name="line1201">1201: </a><font color="#B22222"> <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MatLMVMMultAlgorithm</a> - The type of algorithm used for matrix-vector products and solves used internally by a `MatLMVM` matrix</font>
<a name="line1203">1203: </a><font color="#B22222"> Values:</font>
<a name="line1204">1204: </a><font color="#B22222">+ `<a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_RECURSIVE</a>` - Use recursive formulas for products and solves</font>
<a name="line1205">1205: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_DENSE</a>` - Use dense formulas for products and solves when possible</font>
<a name="line1206">1206: </a><font color="#B22222">- `<a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_COMPACT_DENSE</a>` - The same as `MATLMVM_MULT_DENSE`, but go further and ensure products and solves are computed in compact low-rank update form</font>
<a name="line1208">1208: </a><font color="#B22222"> Level: advanced</font>
<a name="line1210">1210: </a><font color="#B22222"> Options Database Keys:</font>
<a name="line1211">1211: </a><font color="#B22222">. -mat_lmvm_mult_algorithm - the algorithm to use for multiplication (recursive, dense, compact_dense)</font>
<a name="line1213">1213: </a><font color="#B22222">.seealso: [](ch_matrices), `MatLMVM`, `<a href="../manualpages/KSP/MatLMVMSetMultAlgorithm.html">MatLMVMSetMultAlgorithm</a>()`, `<a href="../manualpages/KSP/MatLMVMGetMultAlgorithm.html">MatLMVMGetMultAlgorithm</a>()`</font>
<a name="line1214">1214: </a><font color="#B22222">E*/</font>
<a name="line1215">1215: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1216">1216: </a> <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_RECURSIVE</a>,
<a name="line1217">1217: </a> <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_DENSE</a>,
<a name="line1218">1218: </a> <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MAT_LMVM_MULT_COMPACT_DENSE</a>,
<a name="line1219">1219: </a>} <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MatLMVMMultAlgorithm</a>;
<a name="line1221">1221: </a>PETSC_EXTERN const char *const MatLMVMMultAlgorithms[];
<a name="line1223">1223: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSetMultAlgorithm.html">MatLMVMSetMultAlgorithm</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MatLMVMMultAlgorithm</a>)</font></strong>;
<a name="line1224">1224: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMGetMultAlgorithm.html">MatLMVMGetMultAlgorithm</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMMultAlgorithm.html">MatLMVMMultAlgorithm</a> *)</font></strong>;
<a name="line1226">1226: </a><font color="#B22222">/*E</font>
<a name="line1227">1227: </a><font color="#B22222"> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a> - Rescaling type for the initial Hessian of a symmetric Broyden matrix.</font>
<a name="line1229">1229: </a><font color="#B22222"> Values:</font>
<a name="line1230">1230: </a><font color="#B22222">+ `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_NONE</a>` - no rescaling</font>
<a name="line1231">1231: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_SCALAR</a>` - scalar rescaling</font>
<a name="line1232">1232: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DIAGONAL</a>` - diagonal rescaling</font>
<a name="line1233">1233: </a><font color="#B22222">. `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_USER</a>` - same as `MAT_LMVM_SYMBROYDN_SCALE_NONE`</font>
<a name="line1234">1234: </a><font color="#B22222">- `<a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DECIDE</a>` - let PETSc decide rescaling</font>
<a name="line1236">1236: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1238">1238: </a><font color="#B22222">.seealso: [](ch_matrices), `MatLMVM`, `<a href="../manualpages/KSP/MatLMVMSymBroydenSetScaleType.html">MatLMVMSymBroydenSetScaleType</a>()`</font>
<a name="line1239">1239: </a><font color="#B22222">E*/</font>
<a name="line1240">1240: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1241">1241: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_NONE</a> = 0,
<a name="line1242">1242: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_SCALAR</a> = 1,
<a name="line1243">1243: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DIAGONAL</a> = 2,
<a name="line1244">1244: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_USER</a> = 3,
<a name="line1245">1245: </a> <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MAT_LMVM_SYMBROYDEN_SCALE_DECIDE</a> = 4
<a name="line1246">1246: </a>} <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a>;
<a name="line1247">1247: </a>PETSC_EXTERN const char *const MatLMVMSymBroydenScaleTypes[];
<a name="line1249">1249: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenSetScaleType.html">MatLMVMSymBroydenSetScaleType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMSymBroydenScaleType.html">MatLMVMSymBroydenScaleType</a>)</font></strong>;
<a name="line1250">1250: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenGetPhi.html">MatLMVMSymBroydenGetPhi</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1251">1251: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBroydenSetPhi.html">MatLMVMSymBroydenSetPhi</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1252">1252: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBadBroydenGetPsi.html">MatLMVMSymBadBroydenGetPsi</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line1253">1253: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMSymBadBroydenSetPsi.html">MatLMVMSymBadBroydenSetPsi</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1255">1255: </a><font color="#B22222">/*E</font>
<a name="line1256">1256: </a><font color="#B22222"> <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a> - Memory storage strategy for dense variants of `<a href="../manualpages/KSP/MATLMVM.html">MATLMVM</a>`.</font>
<a name="line1258">1258: </a><font color="#B22222"> Values:</font>
<a name="line1259">1259: </a><font color="#B22222">+ `<a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_REORDER</a>` - reorders memory to minimize kernel launch</font>
<a name="line1260">1260: </a><font color="#B22222">- `<a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_INPLACE</a>` - computes inplace to minimize memory movement</font>
<a name="line1262">1262: </a><font color="#B22222"> Level: intermediate</font>
<a name="line1264">1264: </a><font color="#B22222">.seealso: [](ch_matrices), `MatLMVM`, `<a href="../manualpages/KSP/MatLMVMDenseSetType.html">MatLMVMDenseSetType</a>()`</font>
<a name="line1265">1265: </a><font color="#B22222">E*/</font>
<a name="line1266">1266: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line1267">1267: </a> <a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_REORDER</a>,
<a name="line1268">1268: </a> <a href="../manualpages/KSP/MatLMVMDenseType.html">MAT_LMVM_DENSE_INPLACE</a>
<a name="line1269">1269: </a>} <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a>;
<a name="line1270">1270: </a>PETSC_EXTERN const char *const MatLMVMDenseTypes[];
<a name="line1272">1272: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/MatLMVMDenseSetType.html">MatLMVMDenseSetType</a>(<a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/MatLMVMDenseType.html">MatLMVMDenseType</a>)</font></strong>;
<a name="line1274">1274: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDM.html">KSPSetDM</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/DM/DM.html">DM</a>)</font></strong>;
<a name="line1275">1275: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetDMActive.html">KSPSetDMActive</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line1276">1276: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetDM.html">KSPGetDM</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/DM/DM.html">DM</a> *)</font></strong>;
<a name="line1277">1277: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetApplicationContext.html">KSPSetApplicationContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line1278">1278: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPGetApplicationContext.html">KSPGetApplicationContext</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, void *)</font></strong>;
<a name="line1280">1280: </a><font color="#B22222">/*S</font>
<a name="line1281">1281: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`</font>
<a name="line1283">1283: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1284">1284: </a><font color="#B22222">+ ksp - `ksp` context</font>
<a name="line1285">1285: </a><font color="#B22222">. b - output vector</font>
<a name="line1286">1286: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1288">1288: </a><font color="#B22222"> Level: beginner</font>
<a name="line1290">1290: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>`, `<a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>`</font>
<a name="line1291">1291: </a><font color="#B22222">S*/</font>
<a name="line1292">1292: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> b, void *ctx)</font></strong>;
<a name="line1294">1294: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> *, void *)</font></strong>;
<a name="line1296">1296: </a><font color="#B22222">/*S</font>
<a name="line1297">1297: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeOperators.html">KSPSetComputeOperators</a>()`</font>
<a name="line1299">1299: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1300">1300: </a><font color="#B22222">+ ksp - `<a href="../manualpages/KSP/KSP.html">KSP</a>` context</font>
<a name="line1301">1301: </a><font color="#B22222">. A - the operator that defines the linear system</font>
<a name="line1302">1302: </a><font color="#B22222">. P - an operator from which to build the preconditioner (often the same as `A`)</font>
<a name="line1303">1303: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1305">1305: </a><font color="#B22222"> Level: beginner</font>
<a name="line1307">1307: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeRHS.html">KSPSetComputeRHS</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>`, `<a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>`</font>
<a name="line1308">1308: </a><font color="#B22222">S*/</font>
<a name="line1309">1309: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Mat/Mat.html">Mat</a> A, <a href="../manualpages/Mat/Mat.html">Mat</a> P, void *ctx)</font></strong>;
<a name="line1311">1311: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeOperators.html">KSPSetComputeOperators</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>, void *)</font></strong>;
<a name="line1313">1313: </a><font color="#B22222">/*S</font>
<a name="line1314">1314: </a><font color="#B22222"> <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> - A prototype of a `<a href="../manualpages/KSP/KSP.html">KSP</a>` evaluation function that would be passed to `<a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>()`</font>
<a name="line1316">1316: </a><font color="#B22222"> Calling Sequence:</font>
<a name="line1317">1317: </a><font color="#B22222">+ ksp - `ksp` context</font>
<a name="line1318">1318: </a><font color="#B22222">. x - output vector</font>
<a name="line1319">1319: </a><font color="#B22222">- ctx - [optional] user-defined function context</font>
<a name="line1321">1321: </a><font color="#B22222"> Level: beginner</font>
<a name="line1323">1323: </a><font color="#B22222">.seealso: [](ch_ksp), `<a href="../manualpages/KSP/KSP.html">KSP</a>`, `<a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>()`, `<a href="../manualpages/SNES/SNESGetFunction.html">SNESGetFunction</a>()`, `<a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a>`, `<a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a>`</font>
<a name="line1324">1324: </a><font color="#B22222">S*/</font>
<a name="line1325">1325: </a><strong><font color="#4169E1">PETSC_EXTERN_TYPEDEF typedef <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a>(<a href="../manualpages/KSP/KSP.html">KSP</a> ksp, <a href="../manualpages/Vec/Vec.html">Vec</a> x, void *ctx)</font></strong>;
<a name="line1327">1327: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/KSPSetComputeInitialGuess.html">KSPSetComputeInitialGuess</a>(<a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> *, void *)</font></strong>;
<a name="line1328">1328: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeOperators.html">DMKSPSetComputeOperators</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> *, void *)</font></strong>;
<a name="line1329">1329: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeOperators.html">DMKSPGetComputeOperators</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeOperatorsFn.html">KSPComputeOperatorsFn</a> **, void *)</font></strong>;
<a name="line1330">1330: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeRHS.html">DMKSPSetComputeRHS</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> *, void *)</font></strong>;
<a name="line1331">1331: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeRHS.html">DMKSPGetComputeRHS</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeRHSFn.html">KSPComputeRHSFn</a> **, void *)</font></strong>;
<a name="line1332">1332: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPSetComputeInitialGuess.html">DMKSPSetComputeInitialGuess</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> *, void *)</font></strong>;
<a name="line1333">1333: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMKSPGetComputeInitialGuess.html">DMKSPGetComputeInitialGuess</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/KSP/KSPComputeInitialGuessFn.html">KSPComputeInitialGuessFn</a> **, void *)</font></strong>;
<a name="line1335">1335: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMGlobalToLocalSolve.html">DMGlobalToLocalSolve</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
<a name="line1336">1336: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMSwarmProjectFields.html">DMSwarmProjectFields</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const char *[], <a href="../manualpages/Vec/Vec.html">Vec</a>[], <a href="../manualpages/Vec/ScatterMode.html">ScatterMode</a>)</font></strong>;
<a name="line1337">1337: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMSwarmProjectGradientFields(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const char *[], <a href="../manualpages/Vec/Vec.html">Vec</a>[], <a href="../manualpages/Vec/ScatterMode.html">ScatterMode</a>)</font></strong>;
<a name="line1339">1339: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMAdaptInterpolator(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a> *, void *)</font></strong>;
<a name="line1340">1340: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> DMCheckInterpolator(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Mat/Mat.html">Mat</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line1342">1342: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJKOKKOSSetKSP.html">PCBJKOKKOSSetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a>)</font></strong>;
<a name="line1343">1343: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/PC/PCBJKOKKOSGetKSP.html">PCBJKOKKOSGetKSP</a>(<a href="../manualpages/PC/PC.html">PC</a>, <a href="../manualpages/KSP/KSP.html">KSP</a> *)</font></strong>;
<a name="line1345">1345: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/KSP/DMCopyDMKSP.html">DMCopyDMKSP</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/DM/DM.html">DM</a>)</font></strong>;
<a name="line1347">1347: </a>#include <A href="../include/petscdstypes.h.html"><petscdstypes.h></A>
<a name="line1348">1348: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/DM/DMProjectField.html">DMProjectField</a>(<a href="../manualpages/DM/DM.html">DM</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>, <a href="../manualpages/DT/PetscPointFn.html">PetscPointFn</a> **, <a href="../manualpages/Sys/InsertMode.html">InsertMode</a>, <a href="../manualpages/Vec/Vec.html">Vec</a>)</font></strong>;
</pre>
</body>
</html>
|